Home » Search

About named queries

91-100 of 200Refresh
Tutorial
13

Step 3: Define an EJB Session Bean

) > Session Bean and clicking Next. Enter GuestDao as the EJB class name - use exactly that case sensitive class name. The Java package name should be guest. Click Finish to create the new session bean (EJB ... () { TypedQuery query = em.createQuery( "SELECT g FROM Guest g ORDER BY g.id", Guest
Tutorial
13

Step 3: Define an EJB Session Bean

node (in the [Package Explorer] window) and selecting New > Class. The package name should be guest. Enter GuestDao as the class name - use exactly that case sensitive class name. Click Finish to create ... > getAllGuests() { TypedQuery query = em.createQuery( "SELECT g FROM Guest g
JPA Doc
12

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
12

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
12

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
12

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
JPA Doc
12

getDeclaredAttribute(name)

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

getDeclaredCollection(name)

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

getDeclaredCollection(name, elementType)

(   String name,   Class elementType ) Return the Collection-valued attribute declared by the managed type that corresponds to the specified name and Java element type. Parameters: name - the name ... CollectionAttribute of the given name and element type Throws: IllegalArgumentException
JPA Doc
12

getDeclaredList(name)

Method javax.persistence.metamodel.ManagedType ListAttribute getDeclaredList(   String name ) Return the List-valued attribute declared by the managed type that corresponds to the specified name. Parameters: name - the name of the represented attribute Returns: declared ListAttribute