About not

forum_thread

TYPE Expression

Hi there! Trying to add a simple type expression with the criteria api like in your sample: cb.notEqual(e.type(), cb.literal(Country.class)); results in the error: Caused by: com.objectdb.o.UserException: Attempt to store an instance of a non persistable type java.lang.Class at com.objectdb.o.MSG.d(MSG.java:61) at com.objectdb.o.TYW.writeElement(TYW.java:223) at com.objectdb.o.QRR.l(QRR.java:424) at com.objectdb.o.QRR.g(QRR.java:230) at com.objectdb.o.QRR.b(QRR.java:151) ... Note that my Entity is named "com.test.MyEntity", it is not the complete package path but the exact name of the entity. Alex ...

 
forum_thread

Beginners questions

Hello !! I am new in JPA / ObjectDB development and I have many questions: 1. If I understood correctly, ObjectDB is an implementation of JPA standard (currently 2.0)? 1.1. Is ObjectDB on the same level like Hibernate with only difference that Hibernate stores the data in a RDBMS and ObjectDB has its own format?   ... I did the connection between these two tables correctly or not. 3.2. Both POJO-s extend my own class "Pojo.class" which looks ...

 
issue

Update query bug

Some code. Problem in UPDATE query.   ... because JPQL UPDATE queries are limited to setting values not collections. Following your report the exception in this case was ...

 
release

2.0.5

... problems. Fixed a bug in the results of IS [NOT] NULL queries. Fixed a bug in ObjectDB Doctor. ...

 
forum_thread

Safe Settings

Hi, I am trying to set up ObjectDb in a safe way that allows turning the machine off while database transactions are running. I would like to test if things are really safe and if I don't get corrupted database files in any possible case. I found "recovery" and "recording" in the objectdb.conf file. Which one is safer to use? I suppose I should turn on sync="true", right? ... be explored and fixed. The purpose of sync is not to prevent database corruption (otherwise it would have been enabled by ...

 
issue

[ObjectDB 2.6.7_04] Unexpected exception (Error 990)

Since Version 2.6.7_04 we get the following NullPointerException at Query execution: ... was already fixed. It is unclear why the previous fix is not working, but build 2.6.7_05 includes some addition that maybe can help. ...

 
forum_thread

@SequenceGenerator and single id in whole database

Hi, I have a question about @SequenceGenerator. I have separate @SequenceGenerator in each of my model enitities, but it looks like id's are generated using only one, shared generator. Is there any other way to use separate generators for each entity, so that each entity uses its own sequence just like in RDBM?... strategy is Auto, which causes global ID's per database, not per class?   ...

 
forum_thread

Suspected memleak caused by bad state of EntityManager

Our application manages the Entities itself, so we close the EntityManager after every creating and using. We find a slow memleak in our application recently, and by trace of Entity construct and finalize, we found the problem is caused by bad state of EntityManager. After first throwing the InternalException, the EntityManager throws every time when doing merge operation, but it can be closed and retrieved by EntityManagerFactory, and the instances of Entity constructed by ObjectDB can never be released by JVM.There is a chart describes the instances exists in memory.... to understand this problem. The stack trace is not full - the cause ( NullPointerException ) appears with no stack trace. ...

 
forum_thread

How to package orm.xml when using EJB in WAR?

Hi, I have database utility classes in one project, the id's use sequences declared in an orm.xml file for example: ... of the web project that depends on the EJB .. but it's not great to have duplicate copies of the file, and this isn't needed for ...

 
release

2.0.3

... problems. Fixed a bug in the results of IS [NOT] NULL queries. Fixed a bug in ObjectDB Doctor. ...