About FROM

121-130 of 200Refresh
Tutorial
12

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 Points ... .createQuery("SELECT AVG(p.x) FROM Point p"); System.out.println("Average X: " + q2.getSingleResult
Manual
12

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, using the EntityManager’s remove method within an active transaction. The entity object changes its state from
Manual
11

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
Result
11

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
11

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
JDO Doc
10

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
9

Database Explorer

it from the command line as follows: > java -jar explorer.jar If explorer.jar is not in the current ... . Bookmarked entity objects can be accessed from the [Database] tabbed window. Editing Database Content ... deletes the object itself from the database. Editing Collections Elements can be added to collections
Manual
9

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
JDO Doc
9

javax.jdo.spi.PersistenceCapable.ObjectIdFieldManager

(int fieldNumber) Fetch one field from the field manager. Fetch one field from the field manager ... byte fetchByteField(int fieldNumber) Fetch one field from the field manager. Fetch one field from ... the ObjectId. Since: JDO 1.0 char fetchCharField(int fieldNumber) Fetch one field from the field manager
Manual
8

Chapter 6 - Configuration

, the configuration file is loaded from $objectdb/objectdb.conf where $objectdb represents the ObjectDB home ... from the location of the objectdb.jar file. It is defined as the path to the directory in ... file is loaded from $objectdb/objectdb.conf. You can specify an alternative path by setting