About Object Database

41-50 of 200Refresh
Manual
29

JPA Entity Fields

otherwise (e.g. by using the @Transient annotation). Storing an entity object in the database does not ... . When an entity object is stored in the database every persistent field must contain either null or a value ... in the database for the first time) is 1. For every transaction in which an entity object
Manual
27

Defining a JPA Entity Class

To be able to store Point objects in the database using JPA we need to define an entity class ... (annotated) as having the ability to represent objects in the database. Conceptually this is similar ... , and accordingly, provides the ability to store Point objects in the database and retrieve Point
Manual
26

Shared (L2) Entity Cache

the database and added to the shared cache. On commit - new and modified entity objects are added ... Every EntityManager owns a persistence context, which is a collection of all the entity objects ... an entity object that is already managed by the EntityManager returns the existing instance from
Manual
25

Running JPA Queries

(with getResultList) The following query retrieves all the Country objects in the database. The query ... object, which is a Long object reflecting the number of Country objects in the database ... of this assumption depends on the content of the database. If the database contains multiple Country objects
Manual
25

JPA Persistable Types

class can only be stored in the database as embedded objects, i.e. as part of a containing entity ... The term persistable types refers to data types that can be used in storing data in the database ... can be stored in the database directly. Other persistable types can be embedded in entity classes as fields. In
Tutorial
25

Step 3: Add a Main Class

to store Point objects in the database and then retrieve them from the database. Use copy and paste ... Point objects in the database: em.getTransaction().begin(); for (int i = 0; i < 1000 ... .getTransaction().commit(); // Find the number of Point objects in the database
Manual
25

UPDATE SET Queries in JPA/JPQL

the content of specified entity objects in the database. Updating entity objects in the database using ... with the database. For example, the EntityManager may not be aware that a cached entity object in ... Existing entity objects can be updated, as explained in chapter 2, by: Retrieving the entity
Manual
24

GROUP BY and HAVING clauses

clause. When a GROUP BY clause exists in a JPQL query, database objects (or tuples of database objects ... over all the Country objects in the database. The GROUP BY clause groups these Country objects by ... properties of generated groups instead of individual objects and fields. The position of a GROUP BY
JDO Doc
24

javax.jdo.JDOEntityManager

to the database will not be persisted. Since: JPA 1.0 boolean contains(Object entity) Check ... for each object that failed the consistency check. No datastore resources acquired during the execution ... - a criteria query object Returns: the new query instance Throws: IllegalArgumentException - if the criteria
Tutorial
23

Step 3: Add a Main Class

(); // Store 1000 Point objects in the database: em.getTransaction().begin ... : " + q2.getSingleResult()); // Retrieve all the Point objects from the database ... objects in the database, and then runs a few queries, including a query that retrieves all 1000