Home » Search

About named

1-10 of 200Refresh
Manual
186

JPA Named Queries

A named query is a statically defined query with a predefined unchangeable query string. Using named queries instead of dynamic queries may improve code organization by separating the JPQL query ... and @NamedQueries Annotations The following @NamedQuery annotation defines a query whose name is "Country.findAll
Manual
70

Query Parameters in JPA

execution, because it eliminates the need for repeated query compilations. Named Parameters (:name) The following method retrieves a Country object from the database by its name: public Country getCountryByName(EntityManager em, String name) { TypedQuery query = em.createQuery
Manual
59

JPA Persistable Types

, package or private) and it can be either concrete or abstract. Entity Class Names Entity classes are represented in queries by entity names. By default, the entity name is the unqualified name of the entity class (i.e. the short class name excluding the package name). A different entity name can be set
Manual
48

JPA Query API

because it introduces the Country class to ObjectDB. Dynamic JPQL, Criteria API and Named Queries ... for building static queries, as named queries, using the @NamedQuery and @NamedQueries annotations. It is considered to be a good practice in JPA to prefer named queries over dynamic queries when possible
Manual
42

Schema Update

abilities: name="com.example.old1" new-name="com.example.new1" /> name="com.example.old2" new-name="com.example.new2"> name="A" new-name="NewA" /> name="B"> name="f1" new-name="newF1" /> name="f2" new-name="newF2
JDO Doc
38

getPersistenceManagerFactory(overrides, name, resourceLoader, pmfLoader)

 overrides,   String name,   ClassLoader resourceLoader,   ClassLoader pmfLoader ) Returns a PersistenceManagerFactory configured based on the properties stored in the resource at name, or, if not found, returns a PersistenceManagerFactory with the given name or, if not found, returns a javax
JPA Doc
35

JoinColumn.name

Annotation Element javax.persistence.JoinColumn String name (Optional) The name of the foreign key ... of the following: the name of the referencing relationship property or field of the referencing entity or embeddable class; "_"; the name of the referenced primary key column. If there is no such referencing
JPA Doc
34

getAttribute(name)

Method javax.persistence.metamodel.ManagedType Attribute getAttribute(   String name ) Return the attribute of the managed type that corresponds to the specified name. Parameters: name - the name of the represented attribute Returns: attribute with given name Throws: IllegalArgumentException
JPA Doc
34

getCollection(name)

 name ) Return the Collection-valued attribute of the managed type that corresponds to the specified name. Parameters: name - the name of the represented attribute Returns: CollectionAttribute of the given name Throws: IllegalArgumentException - if attribute of the given name is not present in the managed type Since: JPA 2.0
JPA Doc
34

getCollection(name, elementType)

 name,   Class elementType ) Return the Collection-valued attribute of the managed type that corresponds to the specified name and Java element type. Parameters: name - the name of the represented ... of the given name and element type Throws: IllegalArgumentException - if attribute of the given name