About @Query

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 ...

 
issue

Unexpected Internal Exception

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

 
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 ...

 
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 ...

 
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 ...

 
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

JRebel integration feature

#1 2010-05-22 19:11 Feature request: Dynamic class enhancement during development compatible with JRebel. ...

 
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/ ...

 
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 Bug Version: 2.6.9 Priority: Normal Status: Active Replies: 2 Type:  Bug ...

 
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 ...