Home » Search

About results

71-80 of 200Refresh
Manual
9

Locking in JPA

JPA 2 supports both optimistic locking and pessimistic locking. Locking is essential to avoid update collisions resulting from simultaneous updates to the same data by two concurrent users. Locking ... ); A lock mode can also be set for a query in order to lock all the query result objects. When a retrieval
Manual
9

Numbers in JPQL and Criteria Queries

numeric promotion principles. For example, the resulting type of a binary arithmetic operation ... an integer value. If the two operands share exactly the same type the result type is the same
Result
9

ObjectDB - Object Database for Java (JPA/JDO)

direct storage of graphs of objects and eliminates the ORM layer. The result is better performance and faster applications, especially when the object data model is complex. See JPA benchmark results
Manual
9

Query Parameters in JPA

Query parameters enable the definition of reusable queries. Such queries can be executed with different parameter values to retrieve different results. Running the same query multiple times ... ("name", name).getSingleResult(); } The WHERE clause reduces the query results to Country objects
Tutorial
9

Step 3: Add a Main Class

FROM Point p", Point.class); List results = query.getResultList(); for (Point p : results) { System.out.println(p); } // Close the database
Tutorial
9

Step 3: Add a Main Class

> query =  em.createQuery("SELECT p FROM Point p", Point.class); List results = query.getResultList(); for (Point p : results) { System.out.println(p
Tutorial
9

Step 4: Create an ObjectDB Data Set

): You may click Preview Results to see the query results: Close the dialog box by clicking the OK button. In
Manual
9

Storing JPA Entity Objects

New entity objects can be stored in the database either explicitly by invoking the persist method or implicitly as a result of a cascade operation. Explicit Persist The following code stores ... to the database is sometimes also useful before executing queries in order to get up to date results
Result
9

What is new in ObjectDB 2.0?

query execution. Support of composite indexes and using indexes in query result sort. Improved query ... with different arguments. Query result cache for repeating queries with identical arguments. Improved
Manual
9

WHERE clause (JPQL / Criteria API)

variable. Before passing these Country objects to the SELECT clause for collecting as query results ... and then collected as query results. WHERE Predicate and Indexes Formally, the WHERE clause functions as