About @Query

forum_thread

mappedBy problem

If I put the mappedBy element to the @OneToMany, the owned side (the many side) will never persist ! for example @Entity public class Employee { @Id @GeneratedValue(strategy = GenerationType.IDENTITY) public Long id; public String name; @OneToMany(targetEntity=Address.class,mappedBy="employee") public List<Address> addresses; }   @Entity #1 2010-06-12 18:03 If I put the mappedBy element to the @OneToMany, the owned side (the many side) will never persist ! for exa ...

 
forum_thread

internal object DB locking in an embedded multi threaded application

Hi, we are using Embeded objectDB 2.4.4_06 in a highly multithreaded concurrent manner and we have noticed a performance problem in our application that seems to be attributed to ObjectDb's internal locking. When profiling our app in JVisualVm we notice a large number of threads are blocked and when doing a threaddump we notice that they are all blocked in the same place: #1 2012-11-08 13:26 Hi, we are using Embeded objectDB 2.4.4_06 in a highly multithreaded concurrent manner and we have notice ...

 
forum_thread

Compress ODB file with XML content

Harman company requested to reduce ODB size as much as possible after database created and one of unliked solution was to use ZIP/UNZIP after/before use object DB database. Harman would like to ask Object Db team about possible internal methods to reduce/compress object DB data on run-time or after close ODB file. Does exist any compress data solution from ObjectDB side? #1 2016-04-29 12:11 Harman company requested to reduce ODB size as much as possible after database created and one of unliked solutio ...

 
issue

com.objectdb.o.InternalException NPE

[ObjectDB 2.2.9_10] Unexpected exception (Error 990)   Generated by Java HotSpot(TM) 64-Bit Server VM 1.7.0 (on Windows 7 6.1). Please report this error on http://www.objectdb.com/database/issue/new com.objectdb.o.InternalException: java.lang.NullPointerException: null java.lang.NullPointerException at com.objectdb.o.REG.S(REG.java:822) at com.objectdb.o.VAR.ap(VAR.java:731) at com.objectdb.o.XQI.Vf(XQI.java:69) at com.objectdb.o.TQI.Vf(TQI.java:67) at com.objectdb.o.TQI.Vf(TQI.java:67) at com.objectdb.o.TQI.Vf(TQI.java:67) at com.objectdb.o.MQI.Vf(MQI Bug Version: Priority: Normal Status: Fixed Replies: 2 Type:  Bug ...

 
issue

Internal exception

Hello. We got the following stacktrace. Can you explain me what this internal exception means and why it was thrown? It only happens when the entities are enhanced. Best regards BTC ES   Bug Version: 2.7.1 Priority: Critical Status: Closed Replies: 3 Type:  Bug ...

 
issue

Unexpected Internal Exception

Just got this: Bug Version: 2.4.0 Priority: Normal Status: Closed Replies: 2 Type:  Bug ...

 
forum_thread

A bidirectional OneToOne association with a shared primary key

Hi, In Hibernate, it is possible (using Hibernate specific annotations) to define a bidirectional @OneToOne association that has a shared primary key, example: http://fruzenshtein.com/bidirectional-one-to-one-primary-key-association/ #1 2013-09-27 07:26 Hi, In Hibernate, it is possible (using Hibernate specific annotations) to define a bidirectional @O ...

 
forum_thread

How do I achieve a Deep Fetch using JOIN FETCH?

I have an Entity type which is contains a collection of Embeddable objects, which in turn themselves contain a collection of Embeddable objects: @Embeddable class A { String val; }; @Embeddable class B { List<A> aList; }; @Entity class C { @Id long id; List<B> bList; };   Usually I'm content to have the B's and A's be lazily loaded, but I have a circumstance where I need to be able to work with the whole C object, with all its parts, as a detached object. #1 2013-03-27 03:07 I have an Entity type which is contains a collection of Embeddable objects, which in turn themselves contain a co ...

 
forum_thread

Adding multi part path index on non-embedable object member

Is there a way to add single member index on members of a object member which is not configured embedable but is/are mapped by id like the two members below.  @Entity public class Customer {     @MapsId     @ManyToOne(fetch = FetchType.LAZY)     private Merchant merchant;       @MapsId     @ManyToOne(fetch = FetchType.LAZY)     private List<Store> stores;     // Setter/Getter #1 2014-10-17 07:08 Is there a way to add single member index on members of a object member which is not configured embedable but is/ ...

 
forum_thread

Bulk Delete and Update - best practice?

The attached test creates 1000 large objects and then attempts to delete them all in one go using a DELETE statement. I'm trying to run with -Xmx512m but the test runs out of memory during the delete. The attachment also contains an update test which has similar memory problems. I'm running both tests with the default objectdb.conf. In general is an UPDATE/DELETE statement the most efficient way to update/remove a large number of objects? #1 2011-11-20 12:23 The attached test creates 1000 large objects and then attempts to delete them all in one go using a DELETE statem ...