Home » Search

About named queries

81-90 of 200Refresh
Forum
15

Is named-query supported in orm.xml

I prefer to keep custom JPQL named queries in an external file, e.g. orm.xml, rather than in the entity classes, for example: <named-query name= "DataValue.deleteByCapabilityAndCreationtime ... and d.creationtime <= :creationtime query> named-query
Manual
15

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

javax.persistence.EntityManager

- if not an entity Since: JPA 1.0 Query createNamedQuery(String name) Create an instance of Query for executing a named query (in the Java Persistence query language or in native SQL). Create an instance of Query for executing a named query (in the Java Persistence query language or in native SQL
Manual
14

Retrieving JPA Entity Objects

object (e.g. the name of the manager in the example above) causes the retrieval of missing content from ... object. Retrieval by Query The most flexible method for retrieving objects from the database is to use queries. The official query language of JPA is JPQL (Java Persistence Query Language). It enables
Manual
13

Shared (L2) Entity Cache

. Cache of query programs. Cache of query execution results. The scope of these server side caches ... unit property:    name="my-pu">      ...             name="javax.persistence.sharedCache.mode" value="ALL"/>     
JDO Doc
13

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
Issue
13

Named Query Exception

to create a query using a closed EntityManager. If this is the case, a better error message
Manual
13

General Settings and Logging

" /> name="*" level="info" /> The element
Tutorial
12

Step 3: Define a Spring DAO Component

. The package name should be guest. Enter GuestDao as the class name - use exactly that case sensitive class name. Click Finish to create the new DAO Spring component class. Now replace the content of the new ... all the guests: public List getAllGuests() { TypedQuery query = em.createQuery
Tutorial
12

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