About page

api-jpa

TemporalType.TIME

Map as java.sql.Time(Enum Constant of javax.persistence.TemporalType)

 
api-jpa

TemporalType.TIMESTAMP

Map as java.sql.Timestamp(Enum Constant of javax.persistence.TemporalType)

 
api-jpa

createQuery(qlString)

Create an instance of Query for executing a Java Persistence query language statement.(Method of javax.persistence.EntityManager)

 
api-jpa

getPersistenceUtil()

Return the PersistenceUtil instance(Static Method of javax.persistence.Persistence)

 
api-jpa

createQuery(resultClass)

Create a CriteriaQuery object with the specified result type.(Method of javax.persistence.criteria.CriteriaBuilder)

 
api-jpa

createEntityManager()

Create a new application-managed EntityManager.(Method of javax.persistence.EntityManagerFactory)

 
forum_thread

Problem with @UniqueConstraint

It seems there is a problem with @UniqueConstraint. Same annotations using hibernate works fine - an error will be thrown - duplicate name. ObjectDB - no exception will be thrown. with best regardsPeter... for a primary or secondary table. See JavaDoc Reference Page... Until JPA defines Java object model level @Index / ... Annotation for a database index. See JavaDoc Reference Page... / @Unique javax.jdo.annotations.Unique JDO ...

 
api-jpa

Criteria Query Selection and Results

Reference (JavaDoc) of JPA query criteria result interfaces, including Selection, CompoundSelection, Order and Tuple.... ParameterExpression and Subquery. See JavaDoc Reference Page...  can be used as the SELECT clause content. Multiple ... Type for query expressions. See JavaDoc Reference Page... , which adds order direction - either ascending (ASC) or ...

 
api-jpa

LockModeType.PESSIMISTIC_READ

Pessimistic read lock.(Enum Constant of javax.persistence.LockModeType)

 
forum_thread

Optimistic lock failed : object has version .. instead of ..

I do basic storage and retrieval of Record class. When I stress the retrieval/storage with Apache JMeter sometimes (at some requests) I get this exception.   [ObjectDB 2.5.0] javax.persistence.OptimisticLockException Optimistic lock failed for object entities.Record#'1405/838/2011/121' (object has version 125 instead of 126) (error 673) at com.objectdb.jpa.EMImpl.beforeCompletion(EMImpl.java:381) ... Thank you! ... Optimistic locking is explained in this manual page . ObjectDB Support ObjectDB - Fast Object ...