Internal Website Search

51-60 of 200 resultsRefresh

Best practice: Database update/migration of embedded databases in products

that on upgrade all the old objects are converted and stored in the database in their new form ... user data in the ObjectDB-Database. Example: V1.0: EntityPerson{ String firstName;  ... ”; city=”Oldenburg”] How can we load the Database DB1 with the Product in Version 1.1 or 2

JPA Persistable Types

of an embeddable class can only be stored in the database as embedded objects, i.e. as part of a containing entity ... for storing data in the database. ObjectDB supports all the JPA persistable types, which are: Only instances of entity classes can be stored in the database directly. Other persistable types

UPDATE SET Queries in JPA/JPQL

, but when executed, update the content of specified entity objects in the database. Updating entity objects in the database using an UPDATE query may be slightly more efficient than retrieving entity ... Existing entity objects can be updated, as explained in

Running JPA Queries

all the Country objects in the database. The query should be ran using the Country objects in the database: database contains multiple Country objects with the name 'Canada' (e.g

GROUP BY and HAVING clauses

, but before the SELECT clause. When a GROUP BY clause exists in a JPQL query, database objects (or tuples of database objects) that are generated by the FROM clause iteration and pass the WHERE clause ... clause defines iteration over all the Country objects in the database. The GROUP BY clause

JPA Query Structure (JPQL / Criteria)

objects rather than just field values from database tables, as with SQL. That makes JPQL more object ... iteration over objects in the database. A query variable that is bound to an entity class is referred to as a range variable. Range variables define iteration over all the database objects of a binding entity

Paths and Types in JPQL and Criteria API

;identification variable is used to iterate over all the Country objects in the database. objects in the database, excluding Country entity objects:objects in the database. The Country

Step 3: Add a Main Class

with the project) in order to store Point objects in the database and then retrieve them from ... (); // Store 1000 Point objects in the database: em.getTransaction().begin(); for (int i = 0 ... .getSingleResult()); // Retrieve all the Point objects from the database: TypedQuery

Step 3: Add a Main Class

objects from the database: Right click the tutorial package in ... ().commit(); // Find the number of Point objects in the database: Query q1 = em ... ()); // Retrieve all the Point objects from the database: TypedQuery<Point> query

Constants.OPTION_MAPPING_HETEROGENEOUS_OBJECT_TYPE

Static Field javax.jdo.ConstantsString OPTION_MAPPING_HETEROGENEOUS_OBJECT_TYPE