About example

41-50 of 200Refresh
JPA Doc
15

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
15

CRUD Database Operations with JPA

) require an active transaction. In the example above, every Point object is first constructed as ... see another example of a query that returns a single result: Query q2 = em.createQuery("SELECT AVG(p.x) FROM ... () + 100); // update entity } } em.getTransaction().commit(); In the above example
Manual
15

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
JPA Doc
15

JPA Exceptions

the PersistenceException class. Some specific errors are represented by subclasses of PersistenceException. For example ... ) . For example, if a transaction fails because of an attempt to store a new entity object with a primary ... to retrieve entity objects from the database. For example, when a required entity object is not found: or
Manual
15

JPA Primary Key

primary key fields. Each primary key field must be one of the supported types listed above. For example ... ) of a specified managed entity object. For example: PersistenceUnitUtil util = emf ... useful when using queries that return large result sets. As an example, consider a real time
Manual
15

Locking in JPA

a PESSIMISTIC_READ lock on that database object. For example, consider the following code fragment: em1 ... one atomic operation. For example, the find method has a form that accepts a lock mode: Employee ... operation includes pessimistic locking, timeout can be specified as a property. For example
Manual
15

Online Backup

in that subdirectory with the name of the original database file. For example, backing up a test.odb ... , relative to the ObjectDB home directory on the server side. For example, in client-server mode ... that represents the backup run. This thread can be used, for example, for waiting until the backup
Manual
15

ORDER BY clause (JPQL / Criteria API)

, for example, is invalid because the ORDER BY expression is not part of the results: SELECT c.name ... can order these groups. For example: SELECT c.currency, SUM(c.population) FROM Country c ... provides methods for setting the ORDER BY clause. For example, the following JPQL query: SELECT c FROM
Manual
15

Running JPA Queries

collection. For example, a result collection of a parameterized type can be iterated easily using ... might fail, depending on the database content. For example, the following query is expected to return ... are executed using the executeUpdate method. For example, the following query deletes
Manual
15

Setting and Tuning of JPA Queries

. These methods support the implementation of efficient result paging. For example, if each result ... that has to be applied on all the result objects that the query retrieves. For example, the following query ... all the queries in that scope (unless it is overridden in a more local scope). For example, setting a query