About merge

release

2.3.2

... bugs in using flush. Fixed bugs in cascading merge. Fixed a multithreading deadlock bug . ...

 
release

2.2.1

Release date: 2011-04-10 Download (5.07 MB) Binary:  objectdb-2.2.1.zip You should start by following a  tutorial or reading the manual ...

 
release

2.2.2

Release date: 2011-04-22 Download (5.07 MB) Binary:  objectdb-2.2.2.zip You should start by following a  tutorial or reading the manual ...

 
forum_thread

Java 8 Enhancer Problem

Hello! I am currently migrating my project to Java 8. I'm using Spring and AspectJ load time weaving. Unluckily the LTW option of Spring is global. If it's enabled it also tries to find other class transformers on the classpath. This is normaly not a problem because the ObjectDB enhancer ignores non @Entity or already enhanced classes but in conjunction with new Java 8 class files it throws an exception which causes Spring to stop weaving.  ... but it has a new bug. When I fetch, detach, change and merge an object I get the following exception: Caused by: ... com.objectdb.jpa.EMImpl.merge(EMImpl.java:518) Inserting new objects works. Also merging ones ...

 
forum_thread

Upgrade to 2.4.1_02

Hi there, The upgrade to 2.4.1_02 fixed the initial problem, however there still seems to be an issue. To me it appears that Embeddable might be being lazy loaded, but I cannot be sure. I have attached a testcase demonstrating this issue. Its failing on the merge. Thanks P. ... a testcase demonstrating this issue. Its failing on the merge. Thanks P. ... reflection (error 363) at com.objectdb.jpa.EMImpl.merge(EMImpl.java:454) at ... at com.objectdb.jpa.EMImpl.merge(EMImpl.java:451) ... 24 more Caused by: ...

 
release

2.2.0

Release date: 2011-04-03 Download (3.99 MB) Binary:  objectdb-2.2.0.zip You should start by following a  tutorial or reading the manual ...

 
issue

Unexpected exception (Error 990) - NullPointerException

I'm using Version 2.5.4_05 Maybe this Exception is created by calling em.merge()  - et least this is what I do in the named line. ... Maybe this Exception is created by calling em.merge()  - et least this is what I do in the named line. [ObjectDB ... com.objectdb.jpa.EMImpl.merge(EMImpl.java:514) at ... ... It indicates an unexpected problem during a merge operation, when an object for merge has an unexpected type. Could ...

 
issue

After using the enhancer, Lazy loaded collections are no longer loading. They are set as null

Environment: Mac OS X JVM: Java 1.8 u 20 Steps to reproduce Use the following classes: /** Account Class **/ ... ( cascade = { CascadeType . MERGE , CascadeType . PERSIST } , mappedBy = ... ( cascade = { CascadeType . MERGE , CascadeType . PERSIST } , mappedBy = ...

 
forum_thread

Upgrade to 2.4.1_03

Right, that fix to 2.4.1_02 got us past the previous issue. Now I'm not sure whether this next issue is our annotations, or another issue with objectdb. I have added some more classes to the unit test. They are used by AbstractContactDetail. On line 372 of the attached test, AbstractContactDetail extends AttributeHolder. If I remove the extends, the test passes. If I add it, it fails. I'm not even adding anything to AttributeHolder as part of this test. The exception I get with the extends is: ... using reflection (error 363) at com.objectdb.jpa.EMImpl.merge(EMImpl.java:454) at ... com.objectdb.jpa.EMImpl.merge(EMImpl.java:451) ... 24 more Caused by: ... from the way that ObjectDB builds a new entity object for merge, which includes clearing the new constructed object. In this specific ...

 
release

2.2.3

Release date: 2011-04-29 Download (5.07 MB) Binary:  objectdb-2.2.3.zip You should start by following a  tutorial or reading the manual ...