About class

161-170 of 200Refresh
JDO Doc
8

javax.jdo.spi.PersistenceCapable

javax.jdo.spi Interface PersistenceCapable A class that can be managed by a binary-compatible JDO ... modifies the class to implement PersistenceCapable prior to loading the class into the runtime ... the scope of user-defined classes. All of its declared method names are prefixed with 'jdo
Manual
7

JPA Query API

> q2 = em.createQuery("SELECT c FROM Country c", Country.class); In the above code ... yet and the Country class is unknown as a managed entity class - only the TypedQuery variant is valid because it introduces the Country class to ObjectDB. Dynamic JPQL, Criteria API and Named Queries
JPA Doc
7

javax.persistence.spi.PersistenceUnitInfo

that will be called for every new class definition or class redefinition that gets loaded by the loader ... that will be called for every new class definition or class redefinition that gets loaded by ... on the result returned by the PersistenceUnitInfo.getNewTempClassLoader method. Classes
JPA Doc
6

JPA Exceptions

javax.persistence.TransactionRequiredException Exception Class Overview The root of the JPA exception class subtree is: General errors are represented directly by the PersistenceException class. Some specific errors are represented by subclasses of PersistenceException. For example
Tutorial
6

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.
Manual
6

Database Connection using JPA

defines classes that implement these interfaces. When you use ObjectDB you work with instances of ObjectDB classes that implement these interfaces, and because standard JPA interfaces are used ... a static factory method of the JPA bootstrap class, Persistence: EntityManagerFactory emf
Manual
6

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
6

Query Parameters in JPA [2011-04-01]

( "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
Manual
6

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

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