About named queries

81-90 of 200Refresh
Result
16

Posting to ObjectDB Website - Important Instructions

. Use appropriate styles for formatted lines (Java code, stack trace, query, console/shell input ... MyEntity("test");         em.persist(e);         em.getTransaction().commit();         Query query = em.createQuery("SELECT e FROM MyEntity e");         List resultList = query.getResultList
Result
16

Posting to ObjectDB Website - Important Instructions [2018-08-06]

. Use appropriate styles for formatted lines (Java code, stack trace, query, console/shell input ... MyEntity("test");         em.persist(e);         em.getTransaction().commit();         Query query = em.createQuery("SELECT e FROM MyEntity e");         List resultList = query.getResultList
Manual
16

JPA Persistence Unit

generators and named queries (by annotations). Otherwise, the generators and named queries are available ... ://java.sun.com/xml/ns/persistence/persistence_1_0.xsd" version="1.0"> name ... > name="javax.persistence.jdbc.url" value="objectdb
Tutorial
16

Step 3: Add a Main Class [2011-02-11]

. The package name should be tutorial. Enter Main as the class name - use exactly that case sensitive class name. Click Finish to create the new class. Use copy and paste to fill the new source file ... (); // Find the number of Point objects in the database: Query q1 = em.createQuery("SELECT COUNT(p
Tutorial
16

Step 3: Add a Main Class

. The package name should be tutorial. Enter Main as the class name - use exactly that case sensitive class name. Click Finish to create the new class. Use copy and paste to fill the new source file ... (); // Find the number of Point objects in the database: Query q1 = em.createQuery("SELECT COUNT(p
JDO Doc
16

javax.jdo.Constants

query metadata file. The name of the resource for the DTD of the standard JDO query metadata file ... JDOQUERY_XSD_RESOURCE The name of the resource for the XML schema of the standard JDO query metadata file. The name of the resource for the XML schema of the standard JDO query metadata file. Since: JDO 2
Forum
16

Duplicate Entity class names causes Exception in Query

.... @Entity @NamedQueries({ @NamedQuery(name = "objdbTest.Singleton.getItem", query = "SELECT o FROM Item o WHERE o.cachedKey = :cachedKey"), @NamedQuery(name = "objdbTest.Singleton.count", query ... to  @NamedQuery(name = "objdbTest.Singleton.count", query = "SELECT COUNT(x) FROM objdbTest.Item x
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
JDO Doc
15

javax.jdo.PersistenceManager

of the specified Class Since: JDO 1.0 See Also: Query FetchGroup getFetchGroup(Class cls, String name ... (Class cls, String queryName) Create a new Query with the given candidate class from a named query. Create a new Query with the given candidate class from a named query. The query name given
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