About Transaction

forum_thread

Replaying recorded requests...

Hi, I get the following when ODB starts in embedded mode: Replaying recorded requests... then I get something like 500 lines of recordset information. Here is the relevant part of the config file: Questions: 1) Why am I seeing this if I've set recording enabled to false? 2) I... to false? 2) Is this because I'm somehow not closing a transaction properly, or a PersistenceManager, or a PersistenceManagerFactory? ...

 
api-jdo

preSerialize(pc)

Guarantee that the serializable transactional and persistent fields are loaded into the instance.(Method of javax.jdo.spi.StateManager)

 
api-jdo

javax.jdo.datastore.Sequence

Implementations of this interface can be used to obtain sequences.(Interface of JDO)

 
api-jpa

getTransaction()

Return the resource-level EntityTransaction object.(Method of javax.persistence.EntityManager)

 
issue

Remove an entity which attributes were changed

We use an OSGi environment and we have three OSGi plugins.   In plugin A an entity is loaded and the entity is passed to plugin B. Plugin B changes an attribute on the entity. Plugin C removes the entity from the database. After commit the transaction an exception is caused with optimistic lock exception of the removed entity.   If this operations on the entity are executed in only one plugin, it works well.   ... the entity from the database. After commit the transaction an exception is caused with optimistic lock exception of the ...

 
api-jdo

Constants.TX_READ_COMMITTED

Transaction isolation level representing the requirement to read committed data only.(Static Field of javax.jdo.Constants)

 
forum_thread

Merge of entity classes with "mapped by" very slow

Hi, I have found a strange behavior when merging entities with "mapped by" set on @OneToMany relation. Even if object is fetched with find on the same transaction, merge is very slow. It's because on merge every single relation marked as LAZY is fetch from database. Attached two examples - one with mapped by, second with adding entities list without "mapped by". The difference is huge event for such small objects - 2ms (without mapped by) vs ~50ms (with mapped by) ... relation. Even if object is fetched with find on the same transaction, merge is very slow. It's because on merge every single ...

 
api-jpa

refresh(entity, properties)

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

 
forum_thread

Undeployment of an remote Glassfish application locks objectdb log file

System: Netbeans 7.1 Oracle Glassfish 3.1.2 ObjectDB 2.3.7_04 Senario: Create a simple WebApplication with a "hello world" web service interface in Netbeans. Add objectDB test code to the web service: ... <persistence - unit name = "testdb" transaction - type = "JTA" > <provider>com. objectdb . ...

 
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. ... having trouble with flush() and clear() in a loop inside a transaction not persisting modified objects to database. Sometimes it ...