Home » Search

About example

31-40 of 200Refresh
Manual
17

Retrieving JPA Entity Objects

the referenced object is already managed by the EntityManager). In the example above, when an Employee instance ... cascading retrieval for the field. In the above example, when an Employee instance is retrieved ... interaction with the database and makes database programming easier. For example, after retrieving
Manual
16

Numbers in JPQL and Criteria Queries

numeric promotion principles. For example, the resulting type of a binary arithmetic operation ... . For example: ABS(-5) is evaluated to 5 ABS(10.7) is evaluated to 10.7 The ABS function takes as ... operator (%) in Java (which is also supported by ObjectDB as an extension). For example: MOD(11, 3
Manual
15

Collections in JPQL and Criteria Queries

] EMPTY operator checks whether a specified collection is empty or not. For example: c.languages ... of elements in a specified collection. For example: SIZE(c.languages) is evaluated to the number ... is contained in a specified persistent collection field. For example: 'English' MEMBER OF c
Manual
13

JPA Metamodel API

by the EntityManager's getMetamodel method (both methods are equivalent). For example, given ... for exploring managed fields and properties (which are referred to as attributes). For example ... key and the version attributes and the super type. For example: // Get the super type
Manual
13

JPA Persistable Types

, its date and time fields are automatically adjusted to the requested mode. For example, fields date1 ... is retrieved from the database. For example, the Arrays.asList method returns an instance of an internal ... the original classes and enable transparent activation and transparent persistence. For example
Manual
13

Paths and Types in JPQL and Criteria API

. For example - c.capital, where c represents a Country entity object uses the capital persistent field ... is a persistable user class can be extended further by reusing the dot (.) operator. For example, c ... type method. For example, the following criteria expression checks if the type of a specified entity e
Manual
13

UPDATE SET Queries in JPA/JPQL

with the database. For example, the EntityManager may not be aware that a cached entity object in ... instances of subclasses). For example, the following three equivalent queries increase the population ... expressions, separated by commas, are also allowed. For example: UPDATE Country SET population = 0
Manual
11

Comparison in JPQL and Criteria API

to <>. When at least one of the two operands is NULL, == and != implement the ordinary Java logic, in which, for example, null == null ... detailed above. Therefore, for example, a double value can be compared to a BigInteger instance ... for building these expressions, as shown in the following examples: // Create String path
JPA Doc
11

Criteria Query Selection and Results

: See the SELECT in Criteria Queries section for more details and examples. ORDER BY Clause Elements Elements in ... instance (respectively). See the ORDER BY in Criteria Queries section for more details and examples ... and examples. These interfaces are defined outside the javax.persistence.criteria package
Manual
11

DELETE Queries in JPA/JPQL

. For example, the EntityManager may not be aware that a cached entity object in its persistence ... of subclasses) from the database. For example, the following three equivalent queries delete all the Country ... . A WHERE clause, which is essential for removing selected entity objects, is supported. For example