About merge

forum_thread

Mapped By Fetch is very Slow

Well ! I think i pointed out a HUGE performance issue with mapped-by attribute (yeah again :( ). Here is the test case : 1- Create 100 000 entities with for each 1 entity with @OneToOne(mappedBy attribute) 2- Retrieve only 10 000 for testing 3- Wait ... On my AMD FX 8350, it took 60s Now, go the MyEntity class and remove "mapped-by". You obtain 1 second max of query fetch. ... e1. setEntityChild ( child2 ) ; em. merge ( e1 ) ; }   em. getTransaction ...

 
issue

ArrayIndexOutOfBoundsException with enhanced Entity

Hi! Bug Version: 2.2.8 Priority: Normal Status: Fixed Replies: 7 Type:  Bug ...

 
forum_thread

Entity listener - event instead of object

Hi, Currently I'm playing with entity listener to implement auditing with difference between values in updated entity. There is a problem however with accessing "old" version of object stored in database. I can't find the nice way to use EntityManager in EntityListener. Because of that, I can't store separate entity for given event. Right now I'm using BaseEntity which contains ... of that object (maybe by JPA's  detach + merge or by JDO's detachCopy ). Then you may be able to compare on ...

 
issue

[ObjectDB 2.2.6_02] Unexpected exception (Error 990) at com.objectdb.o.OBC.aJ(OBC.java:961)

I was experiencing an exception so I did a test to reproduce it.   here it is. ... com.objectdb.jpa.EMImpl.merge(EMImpl.java:450) at ... ( ) ; chart = em. merge ( chart ) ; em. getTransaction ( ...

 
issue

Exception on query

[2014-02-14 11:38:47 #1 *] [ObjectDB 2.5.4] Unexpected exception (Error 990)   Generated by Java HotSpot(TM) 64-Bit Server VM 1.7.0_17 (on Windows 7 6.1). Please report this error on http://www.objectdb.com/database/issue/new com.objectdb.o.InternalException: null com.objectdb.o.InternalException at com.objectdb.o.InternalException.f(InternalException.java:236) at com.objectdb.o.STA.K(STA.java:339) at com.objectdb.o.ENT.E(ENT.java:533) at com.objectdb.o.ENT.N(ENT.java:681) at com.objectdb.o.LDR.F(LDR.java:593) at com.objectdb.o.LDR.E(LDR.java:470) at Bug Version: 2.5.4 Priority: Normal Status: Closed Replies: 1 Type:  Bug ...

 
forum_thread

Roadmap - no progress - any plans - transparency?

Hi! I have been using ObjectDB for some time, and I'm relatively glad about it. What I'm not so satisfied is that there is no road map for ObjectDB. We see bug fixes and minor adjustments, which is great, but there's nothing about the future. We need to know in which direction ObjectDB is heading, and if it's heading anywhere or just staying in this state forever, as I see it. It would be nice to have more transparency about this topic. I know there are feature requests already made, but they seem to be ignored. #1 2014-05-11 19:51 Hi! I have been using ObjectDB for some time, and I'm relatively glad about it. What I'm ...

 
forum_thread

persistence.xml classes not respected by ObjectDB

Hi! I have the following persistence.xml. The problem is that ObjectDB loads all the classes in P1 (+ their embeddable classes). P2 is created properly, but P1 gets all entity classes (from P2 also). How can this be avoided, so that both P1 and P2 get just the classes that were specified to each? There is no place in code where P1 tries to access classes from P2, so it makes no sense. ... by class into that one, it seems that they ODB didn't merge all classes, as it does if I erase the DB and start all over. But ...

 
forum_thread

Optimistic locking: prevent version increment on entity collection attribute

Hello, I have an entity E with an attribute which is a collection of entities (one to many relationship) with an optimistic locking strategy supported by a version field. Is it possible to prevent the increment of the version of entity E when entities are added to or removed from the collection? Something like the equivalent of @OptimisticLock(excluded=true) in Hibernate? Thanks, Farid ... ( ) . clear ( ) ; em. merge ( tmpDoc ) ; // This is fine as well but should ...

 
forum_thread

NullPointerException while setting a new property value

Hello, we are using ObjectDB version 2.4.4 and we are unable to resolve following NPE on enhanced entity: java.lang.NullPointerException at com.objectdb.o.ENT.beforeModifyMember(ENT.java:1099) at model.PluginMetaData.__odbSet_maxAllowedDownloads(PluginMetaData.java:1) at model.PluginMetaData.setMaxAllowedDownloads(PluginMetaData.java:268) at model.PluginMetaData.setPluginDescriptor(PluginMetaData.java:94) PluginMetaData looks like this (nothing extraordinary, no relationship to other @entities): ... } else { em. merge ( o ) ; } } ...

 
issue

InternalException

I'm getting a new InternalException (see below). No repeatable example as yet but will work on that and let you know as soon as we have one. If there's anything in the exception which could help us narrow down the problem please let me know. ... Open a new transaction Merge the updated object (entityManager.merge) Commit the transaction   ...