About Time


Download ObjectDB

Free download of the ObjectDB object database for Java with JPA and JDO support.... and one million entity objects per database file (no time limit). You need a license to remove these limits. ...


Retrieving JPA Entity Objects

Explains how to use JPA to retrieve entity objects from the database.... Therefore, it is recommended to avoid unnecessary time consuming operations in no-arg constructors of entity classes and to keep ...



This class is a helper class for JDO implementations.(Class of JDO)



Flushing to occur at transaction commit.(Enum Constant of javax.persistence.FlushModeType)


Pessimistic lock timeout - blocks indefinitely

I've attached a simple test which creates an object then kicks off several threads which each try to update the object. I'm using a pessimistic lock with timeout as follows: ... 1000ms the blocked threads get released at the correct time but thrown a LockTimeoutException implying that the first lock wasn't ...



Set the ignoreCache option.(Method of javax.jdo.Query)


Cannot initialize db after inserting a java.util.List

Hi, I've spent some time trying to figure this out without success, so I'm asking for much appreciated help. I have an entity class like this: class Test { private List<String> list = new ArrayList<String>(); } I can persist and retrieve the obj just fine using standalone program, but whenever I access the db through a servlet container I get this error: objectdb.java.util.ArrayList cannot be cast to com.objectdb.spi.TrackableSysType This happens during EntityManagerFactory initialization.... Hi, I've spent some time trying to figure this out without success, so I'm asking for much ...



Thrown by the persistence provider when EntityManager.persist(Object) is called and the entity already exists.(Exception of JPA)


getObjectById(oid, validate)

This method locates a persistent instance in the cache of instances managed by this PersistenceManager.(Method of javax.jdo.PersistenceManager)


Recursive calls with @PreUpdate annotation and Glassfish OutOfMemoryError

Hi,    I've had an issue that started today and it's got me stumped. I've got a subclass User, which extends a BaseEntity. The BaseEntity has a @PreUpdate as per: ... and until I remove the enhancement (I do this build time with maven). First, for the test case I supplied: 1) You ...