About transaction


Problem with bidirectional link

(I had raised this issue in the past and have finally had time to come back to it and strip down the classes to a minimum). The problem seems to lie in having bidirectional links (viz, I have @OneToMany Map<String, Entry> children and @ManyToOne Entry parent in my classes. I've attached the offending classes. If I add an entry to the children I get an error. I'm wondering if it's a question of multiple references to the same instance of a class? It's hard to tell with the opaque code of ObjectDB. ... javax.persistence.RollbackException Failed to commit transaction: Attempt to persist a reference to a non managed Folder instance - ...


Unexpected Exception during commit

I'm testing code that otherwise has been working with a clean database. I have seen several examples of the following exception. It never seems to happen in the same place twice, though. If you can give me a hint as to what would internally cause this, I'll try to reproduce it. Carl   ... javax.persistence.RollbackException Failed to commit transaction: Unexpected internal exception (error 613) at ...



Mark an instance as no longer needed in the cache.(Method of javax.jdo.PersistenceManager)



Specifies a static, named query in the Java Persistence query language.(Annotation of JPA)



Transaction isolation level representing the ability to read uncommitted data.(Static Field of javax.jdo.Constants)



Invoked whenever a persistent instance is first made dirty, during an operation that modifies the value of a persistent or transactional field.(Method of javax.jdo.listener.DirtyLifecycleListener)



Thrown by the persistence provider when a problem occurs.(Exception of JPA)



Return a copy of the JDO identity associated with the parameter instance.(Method of javax.jdo.spi.StateInterrogation)


how to persist an object twice into two diff. collections of two diff. classes

ok my problem,    i persist a Squad Object into a Cup Object at the beginning, after i have to create and persist a competition object in which i have to put some of the already created/persisted squads. the final method looks like that: ... persistence . RollbackException Failed to commit transaction : Attempt to reuse an existing primary key value ( ...



Set the second data store connection factory.(Method of javax.jdo.PersistenceManagerFactory)