About persist

forum_thread

Query and commit simultaneously

#1 2010-07-14 09:02 Is it possible to query and commit on the same persistence manager (i.e. same odb file) at the same time? ...

 
api-jpa

executeUpdate()

Execute an update or delete statement.(Method of javax.persistence.Query)

 
api-jdo

jdoPostLoad()

Called after the values are loaded from the data store into this instance.(Method of javax.jdo.listener.LoadCallback)

 
api-jpa

GeneratedValue.generator

(Optional) The name of the primary key generator to use as specified in the SequenceGenerator or TableGenerator annotation.(Annotation Element of javax.persistence.GeneratedValue)

 
api-jpa

javax.persistence.MapKeyTemporal

This annotation must be specified for persistent map keys of type java.util.Date and java.util.Calendar.(Annotation of JPA)

 
forum_thread

EntityManager.merge gives EntityNotFoundException

Just started using objectdb (2.3.4). Calling EntityManager.merge for a new (non-managed) object gives EntityNotFoundException. I am perplexed by this. See attached test case. Thanks for your assistance. Full error output is: Exception in thread "main" [ObjectDB 2.3.4] javax.persistence.EntityNotFoundException Entity is not found: classdb.Test#'id' (error 631) at com.objectdb.jpa.EMImpl.merge(EMImpl.java:456) at classdb.Test.main(Test.java:32) ... build 2.3.4_01 fixes it. Notice, however, that persist is more efficient than merge  in this case, since merge ...

 
api-jdo

javax.jdo.datastore.JDOConnection

The underlying connection that is being used by a javax.jdo.PersistenceManager.(Interface of JDO)

 
api-jdo

detachCopyAll(pcs)

Detach the specified instances from the PersistenceManager.(Method of javax.jdo.PersistenceManager)

 
api-jdo

Constants.PMF_ATTRIBUTE_CONNECTION_FACTORY_NAME

The name of the persistence manager factory element's "connection-factory-name" attribute.(Static Field of javax.jdo.Constants)

 
api-jdo

getPersistenceManagerFactory(overrides, name)

Returns a named PersistenceManagerFactory or persistence unit.(Static Method of javax.jdo.JDOHelper)