Home » Search

About class

161-170 of 200Refresh
Manual
7

Locking in JPA

some ORM JPA providers) is defined in the entity class or not. Pessimistic Locking The main ... employee = em.find( Employee.class, 1, LockModeType.PESSIMISTIC_WRITE); Similarly, the refresh ... ", 2000); Employee employee = em.find(       Employee.class, 1, LockModeType.PESSIMISTIC_WRITE
Manual
7

Query Parameters in JPA

( "SELECT c FROM Country c WHERE c.name = :name", Country.class); return query.setParameter ... .createQuery( "SELECT c FROM Country c WHERE c.name = ?1", Country.class); return query ... + "'", Country.class); return query.getSingleResult(); } Instead of using a parameter
Tutorial
7

Step 1: Create a Java Project

). The name of the Main class should be tutorial.Main. Verify that exactly this case sensitive fully qualified class name is set (you may use copy & paste). Click the Finish button to create ... with ObjectDB/JPA support. The next step is creating a JPA Entity class.
JPA Doc
6

javax.persistence.EntityManager

instance is defined by a persistence unit. A persistence unit defines the set of all classes ... string is found to be invalid Since: JPA 1.0 TypedQuery createNamedQuery(String name, ClassClass resultClass) Create an instance
JDO Doc
5

javax.jdo.annotations.PersistenceCapable

javax.jdo.annotations Annotation PersistenceCapable Target: Classes Annotation for whether the class or interface is persistence-capable. Since: JDO 2.1 String cacheable Whether this class is cacheable in a Level2 cache. Whether this class is cacheable in a Level2 cache. Default value: "true
JPA Doc
5

javax.persistence.metamodel.EntityType

the attributes of the managed type. Returns: attributes of the managed type Since: JPA 2.0 Class getCollection(String name, Class elementType) Return ... (String name, Class elementType) Return the Collection-valued attribute declared by the managed
Result
5

Activation completed successfully!

. Classes that are enhanced by the ObjectDB Enhancer (when using the OEM license) are signed ... only signed enhanced persistable classes - activation by end users is unnecessary.
Manual
5

DELETE Queries in JPA/JPQL

of a DELETE query removes all the instances of a specified entity class (including instances ... .Object class in queries (as an extension to JPA), so the following query can be used to delete
Manual
5

GROUP BY and HAVING clauses

q = cb.createQuery(Country.class); Root c = q.from(Country.class); q.multiselect(c
JDO Doc
5

JDO External Listeners

The following types can be used to implement external listener classes for JDO lifecycle events: Listener objects can be bound to one or more persistence capable classes by invoking the addInstanceLifecycleListner method either at the PersistenceManagerFactory level or the PersistenceManager level.