About Transaction

issue

InternalException

Hi, 3 Days before our rollout.. We've just got this when trying to commit persist of a bunch of entities into the DB   ... by: com.objectdb.o._RollbackException: Failed to commit transaction: at com.objectdb.o.JPE.g(JPE.java:89) [objectdb-2.4.0.jar:] at ...

 
forum_thread

Fetch a whole entity graph eager

Hello, I have two question at you. Are you provided JPA 2.1 annotation @NamedEntityGraph in next version ObjectDB 3.0? And do you know an easy possibility to get an entirely eager entity graph with all depended entities which we can use as a detached full accessible entity graph outside a transaction without lazy loading? Best regards ... use as a detached full accessible entity graph outside a transaction without lazy loading? Best regards ...

 
api-jpa

flush()

Synchronize the persistence context to the underlying database.(Method of javax.persistence.EntityManager)

 
api-jdo

javax.jdo.spi.JDOPermission

The JDOPermission class is for operations that are reserved for JDO implementations and should not be called by other code.(Class of JDO)

 
api-jpa

refresh(entity)

Refresh the state of the instance from the database, overwriting changes made to the entity, if any.(Method of javax.persistence.EntityManager)

 
api-jpa

NamedQuery.lockMode

(Optional) The lock mode type to use in query execution.(Annotation Element of javax.persistence.NamedQuery)

 
forum_thread

Attempt to remove a detached entity object (error 613)

Hello, that a strange error for me ... I have a detached object in my Java code and i just wanted to merge it ... Unfortunatly, i get this error : Failed to commit transaction: Attempt to remove a detached entity object (error 613)      at com.objectdb.jpa.EMImpl.commit(EMImpl.java:290) We see in this stack trace that is a commit operation, all right ... So why does it try to remove the object ... ? ... Unfortunatly, i get this error : Failed to commit transaction: Attempt to remove a detached entity object (error 613) ...

 
api-jdo

Persistent.persistenceModifier

Modifier for this field.(Annotation Element of javax.jdo.annotations.Persistent)

 
api-jpa

javax.persistence.EntityNotFoundException

Thrown by the persistence provider when an entity reference obtained by EntityManager.getReference is accessed but the entity does not exist.(Exception of JPA)

 
api-jdo

getConnectionFactory2Name()

Get the name for the second data store connection factory.(Method of javax.jdo.PersistenceManagerFactory)