Home » Search

About JBoss AS

71-80 of 200 Refresh
Manual
4

Date and Time in JPQL and Criteria Queries

Date and time expressions may appear in JPQL queries: as date and time literals - e.g. {d '2011-12-31'}, {t '23:59:59'}. as parameters - when date and time values are assigned as arguments. as path expressions - in navigation to persistent date and time fields. as results of predefined JPQL current
Manual
4

Defining a JPA Entity Class

(annotated) as having the ability to represent objects in the database. Conceptually this is similar to serializable classes, which are marked as having the ability to be serialized. The Point Entity Class The following Point class, which represents points in the plane, is marked as an entity class
Manual
4

Index Definition

; } When indexed fields are specified explicitly in the members attribute, as shown ... , the @Uniques annotation can wrap multiple @Unique annotations. As shown above, the members attribute ... to values that are stored as part of the entity. Therefore, indexes on multi part paths are only allowed
Manual
4

JPA Persistence Unit

to instantiate an EntityManagerFactory in JPA ( as explained in the JPA Overview section) requires ... that is described in this manual can be replaced by equivalent XML in the mapping files ( as explained ... , username and password, as demonstrated above. XML Mapping Metadata ObjectDB supports using XML metadata as
Manual
4

Logical Operators in JPQL and Criteria API

of logical operators, as shown in the following table: Set 1 - JPQL / SQL Set 2 - Java / JDO AND && OR ... the Java/JDO && operator as a synonym of AND as part of its JDO support. Binary OR (||) Operator ... || operator as a synonym for OR as part of its JDO support. Unary NOT (!) Operator The following
Manual
4

ORDER BY clause (JPQL / Criteria API)

clause produces objects for examination and the WHERE clause selects which objects to collect as results ... . The following query returns Country objects ordered by currency as the primary sort key and by name as ... above: SELECT c.currency AS currency, c.name AS name FROM Country c ORDER BY currency, name
Manual
3

CRUD Database Operations with JPA

.getTransaction().commit(); Operations that modify the content of the database (such as storing new objects) require an active transaction. In the example above, every Point object is first constructed as an ordinary Java object. It then becomes associated with an EntityManager and with its transaction ( as
Manual
3

JPA Query API

. Building Queries with createQuery As with most other operations in JPA, using queries starts with an EntityManager (represented by em in the following code snippets), which serves as a factory ... and q2. When building a TypedQuery instance the expected result type has to be passed as an additional
Manual
3

Locking in JPA

that manage the same Employee database object, which is referenced as e1 by em1 and as e2 by em2 (notice ... rollback). ObjectDB supports also releasing a lock explicitly while the transaction is active, as ... additional lock modes that can also be specified as arguments for the lock method to obtain special
Manual
3

Auto Generated Values

this annotation for non-key numeric persistent fields as well. Several different value generation strategies can be used as explained below. The Auto Strategy ObjectDB maintains a special global ... for entity objects with no primary key fields defined ( as explained in the previous section). The same