About JPA

api-jpa

quot(x, y)

Create an expression that returns the quotient of its arguments.(Method of javax.persistence.criteria.CriteriaBuilder)

 
issue

javax.servlet.ServletException: Annotated methods must follow the JavaBeans naming convention. __odbHidden_getPropertyName

NB: the following issue only happens with ObjectDB, it does not happen with EclipseLink.  Glassfish3.0.1 objectdb-2.2.5_10 JavaEE6 web app The error reports as: javax.servlet.ServletException: Annotated methods must follow the JavaBeans naming convention. __odbHidden_getWidthPxSideBarLeft Where getWidthPxSideBarLeft() is an annotated getter of an entity ViewConfiguration: ... Support ObjectDB - Fast Object Database for Java (JPA/JDO) edit ... Support ObjectDB - Fast Object Database for Java (JPA/JDO) edit ...

 
api-jpa

NamedQuery.name

(Required) The name used to refer to the query with the EntityManager methods that create query objects.(Annotation Element of javax.persistence.NamedQuery)

 
forum_thread

Working with a cleared cache

I'm working on trying to improve the performance of our database processing class and I'm attempting to keep the L1 cache within the PersistenceManager cleared in an effort to reduce its memory footprint. The code snippet below is part of a Callable task that is run repeatedly with a given list of commands. When I run the code as written I start getting the stack traces that are listed.  However, if I comment out the calls to makeTransactionalAll() and evictAll() everything works.... com.objectdb.o.OBM.bE(OBM.java:715) at com.objectdb.jpa.EMImpl.commit(EMImpl.java:274) at ... In general, there are many restrictions on code in JPA/JDO lifecycle event callbacks. ObjectDB should produce better error ... Support ObjectDB - Fast Object Database for Java (JPA/JDO) edit ...

 
api-jpa

getMaxResults()

The maximum number of results the query object was set to retrieve.(Method of javax.persistence.Query)

 
forum_thread

em.flush(); em.clear(); loosing data and not persisting managed objects

I'm having trouble with flush() and clear() in a loop inside a transaction not persisting modified objects to database. Sometimes it does other times it doesn't. Here is my Entity. ... Support ObjectDB - Fast Object Database for Java (JPA/JDO) edit ... Support ObjectDB - Fast Object Database for Java (JPA/JDO) edit ...

 
api-jpa

ManyToOne.cascade

(Optional) The operations that must be cascaded to the target of the association.(Annotation Element of javax.persistence.ManyToOne)

 
api-jpa

PersistenceContext.name

(Optional) The name by which the entity manager is to be accessed in the environment referencing context; not needed when dependency injection is used.(Annotation Element of javax.persistence.PersistenceContext)

 
forum_thread

Occasionally slow requests in load testing

We are running load testing against objectdb version 2.3.7_18. The performance is generally OK, however there are quite a few "spikes" in the performance where we are getting a lot of very slow response times from the DB, around 10 - 15 seconds. Looking at the DB server process with AppDynamics we can see that most of the requests get stuck in one of 2 places: com.objectdb.o.PGC:w: line number 232 com.objectdb.o.LFL:U: line number 1068 Please see the attached callgraph examples for full stack trace examples. ... Support ObjectDB - Fast Object Database for Java (JPA/JDO) edit ... Support ObjectDB - Fast Object Database for Java (JPA/JDO) edit ...

 
api-jpa

find(entityClass, primaryKey, lockMode)

Find by primary key and lock.(Method of javax.persistence.EntityManager)