About FROM

121-130 of 200Refresh
Manual
9

JPA Named Queries

strings from the Java code. It also enforces the use of query parameters rather than embedding literals ... ="SELECT c FROM Country c") The @NamedQuery annotation contains four elements ... ", query="SELECT c FROM Country c") public class Country { ... } Attaching multiple named
Tutorial
9

Step 3: Add a Main Class

to store Point objects in the database and then retrieve them from the database. Use copy and paste ... : Query q1 = em.createQuery("SELECT COUNT(p) FROM Point p"); System.out.println("Total ... .createQuery("SELECT AVG(p.x) FROM Point p"); System.out.println("Average X: " + q2
Tutorial
9

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

the database and then retrieve them from the database: Open the [New Java Class] dialog box by right ... ) FROM Point p"); System.out.println("Total Points: " + q1.getSingleResult()); // Find the average X value: Query q2 = em.createQuery("SELECT AVG(p.x) FROM Point p
Tutorial
9

Step 3: Add a Main Class

the database and then retrieve them from the database: Open the [New Java Class] dialog box by right ... ) FROM Point p"); System.out.println("Total Points: " + q1.getSingleResult()); // Find the average X value: Query q2 = em.createQuery("SELECT AVG(p.x) FROM Point p
Manual
9

Working with JPA Entity Objects [2011-04-18]

are provided in the Storing Entities section. Entity objects retrieved from the database by ... . A managed entity object can also be retrieved from the database and marked for deletion, by using the EntityManager’s remove method within an active transaction. The entity object changes its state from
Manual
9

Working with JPA Entity Objects

are provided in the Storing Entities section. Entity objects retrieved from the database by ... . A managed entity object can also be retrieved from the database and marked for deletion, by using the EntityManager’s remove method within an active transaction. The entity object changes its state from
Result
8

Apache License, Version 2.0, January 2004

resulting from mechanical transformation or translation of a Source form, including but not limited ... , that is based on (or derived from) the Work and for which the editorial revisions, annotations ... . For the purposes of this License, Derivative Works shall not include works that remain separable from, or merely
Manual
8

JPA / JDO Class Enhancer

.jar file. You can run it from the command line as follows: > java -cp objectdb.jar com.objectdb ... on Unix/Linux) from the ObjectDB bin directory. To use that script you have to edit the paths ... \*"/> Enhancement API The ObjectDB Enhancer can also be invoked from Java code: com.objectdb
JDO Doc
8

javax.jdo.PersistenceManagerFactory

instances obtained from the same PersistenceManagerFactory will have the same default properties ... . Once the first PersistenceManager is obtained from the PersistenceManagerFactory, the factory can no longer ... to see that all PersistenceManager instances obtained from this PersistenceManagerFactory have no active
Manual
7

JPA Lifecycle Events

flush). @PostLoad - after an entity has been retrieved from the database. @PreUpdate ... the EntityManager. @PostRemove - after deleting an entity from the database (during commit or flush). An entity ... an entity class and all its descendant classes from using the default listeners: @Entity