About Object Database

51-60 of 200Refresh
Manual
18

Running JPA Queries

(with getResultList) The following query retrieves all the Country objects in the database. Because multiple ... object reflecting the number of Country objects in the database: TypedQuery query = em ... on the database content. For example, the following query is expected to return a single Country object
Manual
18

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
Manual
18

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
18

UPDATE SET Queries in JPA/JPQL [2011-11-22]

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
Tutorial
18

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 ... ); } em.getTransaction().commit(); // Find the number of Point objects in the database
Tutorial
18

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

= emf.createEntityManager(); // Store 1000 Point objects in the database: em ... (); // Find the number of Point objects in the database: Query q1 = em.createQuery("SELECT COUNT(p ... objects from the database: TypedQuery query = em.createQuery("SELECT p
Tutorial
18

Step 3: Add a Main Class

= emf.createEntityManager(); // Store 1000 Point objects in the database: em ... (); // Find the number of Point objects in the database: Query q1 = em.createQuery("SELECT COUNT(p ... objects from the database: TypedQuery query = em.createQuery("SELECT p
Manual
18

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
Manual
17

JPA Query Structure (JPQL / Criteria)

rather than just field values from database tables, as with SQL. That makes JPQL more object oriented friendly ... JPQL Query The following query retrieves all the Country objects in the database: SELECT c FROM ... over objects in the database. A query variable that is bound to an entity class is referred to as
Manual
17

Paths and Types in JPQL and Criteria API

over all the Country objects in the database. For a country with no capital city, such as Nauru, c.capital ... of all the entity objects in the database, excluding Country entity objects: SELECT COUNT(e) FROM ... is an extension of ObjectDB that can be used to iterate over all the entity objects in the database