JPA 2.1 ã® javax.persistence.EntityManagerFactory#addNamedQuery() ã®ã¯ãªãã æ¤ç´¢ãã¦ããã¾ããããããªãã®ã§ã æ®éã® NamedQuery ã®ä½¿ãæ¹ JPA 㧠NamedQuery 使ãæã¯ãEntity ã«ã¢ããã¼ã·ã§ã³æå®ãã¦ä»¥ä¸ã®ããã«å®ç¾©ããã @Entity @NamedQuery(name="Country.findAll", query="SELECT c FROM Country c") public class Country { ... } è¤æ°ããå ´åã«ã¯ã@NamedQueries ã§ã @Entity @NamedQueries({ @NamedQuery(name="Country.findAll", query="SELECT c FROM Country c"), @NamedQuery(
{{#tags}}- {{label}}
{{/tags}}