About named queries

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

SelfTest and com.objectdb.Doctor

Dear Objectdb-Team We're really pleased with objectdb. Nevertheless we would like to ask for an 'extra' feature. The class 'com.objectdb.Doctor' enables a self-test for a given Database. We would like to make a self-test before every start of the database (i.e. the server). In case of fails or errors we would like to repair the database and/or inform the customer. #1 2015-10-29 10:27 Dear Objectdb-Team We're really pleased with objectdb. Nevertheless we would like to ask for an ' ...

 
forum_thread

Suspected memory leak

Hi, We are running soak testing with Object DB and it is showing signs of memory leak: used memory is growing overtime until Object DB JVM fails with OutOfMemoryException. Object DB is running in a separate JVM. All the config is attached. We are continuing to investigate this and will create memory dump next time this happens. In the meantime, could you please check if there is anything wrong with our configuration? Kind regards, Natalia. ... In addition, if the problem is caused by heavy queries - defining new indexes ( but see this issue ) may help. ...

 
forum_thread

remove() and persist() in same transaction => Attempt to reuse an existing primary key value

Hello Support, in our configuration (FlushModeType.AUTO) is the execution of  em.find(Entity.class, <id>) much faster than an equivalent query. To optimize the Performance we define a special Entity (A) with additional data that use an existing ID of another Entity (B) from another class (another table). On this point we get no conflicts. If we remove additional data for Entity (B) and then the special Entity (A) is empty, we remove the special Entity (A). #1 2017-02-22 06:53 Hello Support, in our configuration (FlushModeType.AUTO) is the execution of  em.find(Entity.class, ...

 
issue

java.lang.ClassCastException: com.objectdb.o.RFV cannot be cast to com.objectdb.o.RSV

The following query: SELECT count(m) FROM Message m WHERE m.attachments.original=:template is generating this exception: Bug Version: 2.5.2 Priority: High Status: Fixed 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

Pessimistic Lock Timeouts setting

Hi,   I realise that JPA2 doesn't necessarily define a standard API way for Lock Timeouts. However, there is a standardised query 'hint' that can be setup to make the underlying DB lock a record for a specific time. The hint property is: "javax.persistence.lock.timeout" #1 2011-04-29 04:30 Hi,   I realise that JPA2 doesn't necessarily define a standard API way for Lock Timeouts. Howev ...

 
issue

Unexpected Internal Exception

Just got this: Bug Version: 2.4.0 Priority: Normal Status: Closed 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 ...

 
forum_thread

multi thread application, id field sporadically null

We are testing objectDB with a multi thread application. Each thread has it's own entityManager created from a common factory. In one thread we receive sometimes an object from the database with the field that is declared as @Id having the value null (what is not correct, we checked that with the explorer). The class is declared like this: ... #1 2014-04-10 16:04 We are testing objectDB with a multi thread application. Each thread has it's own entityManager created from ...