Home » Search

About example

31-40 of 200 Refresh
Manual
17

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
14

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
14

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
14

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
14

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

Posting to ObjectDB Website - Important Instructions

. Avoid overflow of published source code examples by breaking long lines. Long stack traces (> 50 lines) and complex source examples (> 100 lines) should be posted as attachments. 3. Sample Code ... ). You may use the following example as an initial template for your test case: package test
Manual
12

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
12

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
12

CRUD Database Operations with JPA

) require an active transaction. In the example above, every Point object is first constructed as ... when exactly one result value is expected (a single Long object in the query above). Let's see another example ... ); // update entity } } em.getTransaction().commit(); In the above example all the Point