About commit

issue

GC Memory

Hi there, I was hoping to get some support on ObjectDB regarding memory usage.  I received the following error.  Context for the error is found below. [2015-04-27 13:16:18 #20 server] ... many large objects in one transaction. Note that only commit can release memory, not flush . So bulk load of data into the ... be done in smaller transaction (with begin and commit for each, and possibly also  clear  after commit ) ...

 
release

2.4.3

... Fixed a bug in running queries between flush and commit. Fixed a deadlock ( issue #62 ). Fixed ... a bug in removing a new flushed entity object before first commit ( issue #86 ). Fixed a NullPointerException in ...

 
release

2.3.6

... a bug in removing a new flushed entity object before first commit ( issue #86 ). Fixed a NullPointerException in ... cascading persist after updating the database and before commit (issue #78 ). Fixed NullPointerException on ...

 
forum_thread

problem with lazy loading - unittest project attached

hi, i'm still testing objectdb together with spring-data-jpa. i made a test which should simulate 4 requests 1. save entity 2. read an existing entity, add onetomany relation 3. read an existing entity, add another onetomany relation 4. read entity, get relations. i have the feeling this is not the optional way to test this, because of the differnt transaction behavior. the test is not transactional, but the spring repository methods are. ... be valid for each repository method, so i guess after the commit the id is assigned?! like i said, this is properbly not the best ... allow me to call entityManager.getTransaction().begin()/commit() and i also can not set the isolation to READ_UNCOMMITTED so i ...

 
issue

Schema-Update: Rename superclass and remove one subclass

Hello, we renamed a superclass and removed one of the subclass. If we then try to open the Database (with ObjectDB-Explorer) we get a "Failed to generate dynamic type ..."   Small Example: Generate Database ... ) ; em. getTransaction ( ) . commit ( ) ;   em. close ( ) ; ... "b" ; em. getTransaction ( ) . commit ( ) ;   em. close ( ) ; ...

 
release

2.4.2

... Fixed a bug in running queries between flush and commit. Fixed a deadlock ( issue #62 ). Fixed ... a bug in removing a new flushed entity object before first commit ( issue #86 ). Fixed a NullPointerException in ...

 
forum_thread

Optimistic lock

Hello When I get an optimistic lock on an object, refresh(), start trans and persist?  Will the changes made to the object before the violation be retained or must they be duplicated in the retry code?  Assuming it affects only one object.  tia. ... and I simple need to create a new transaction, persist and commit the object?  Or do I need to refresh() the object start a transaction, reapply the changes,persist and commit? edit ...

 
forum_thread

Unexpected behaviour upon update. Bug?

This sample does not work as I expect.  Why?  Is it a bug? Below is the complete program. Expect: 3 Get: 4 import java.io.Serializable; import java.util.List; import javax.persistence.*; @Entity public class Update implements Serializable   {     @Id     int i;     int v; ... ; em. getTransaction ( ) . commit ( ) ;   simple. v = 4 ; ... invisible in other  EntityManager instances until commit, but visible in the  EntityManager in which they occurred. ...

 
release

2.7.0

... Fixed an OptimisticLockException bug on commit after flushing a removed modified entity object. Fixed ... Fixed a bug in running queries between flush and commit. Fixed a deadlock ( issue #62 ). Fixed ...

 
forum_thread

Problem with byte arrays in JDO - ClassCastException

A bizarre ClassCastException is thrown if I attempt to obtain a byte array field as the result of a Query: Exception in thread "main" java.lang.ClassCastException: java.lang.Boolean cannot be cast to [B at spiffy.test.ObjectdbTest.main(ObjectdbTest.java:44) ... ; pm. currentTransaction ( ) . commit ( ) ; pm. currentTransaction ( ... ; pm. currentTransaction ( ) . commit ( ) ; query = pm. newQuery ( ...