About ObjectDB

forum_thread

Criteria query error: Unexpected query token

Using JPA2, I can save entities now in JBoss, and also fetch them uniquely by id. However, if I try to fetch it by getting back all instances (e.g. findAll, I get the following error:   ... org.jboss.arquillian.spi.ArquillianProxyException: com.objectdb.o._PersistenceException : Unexpected query token 'FROM' ... because : Could not find suitable constructor] at com.objectdb.o._PersistenceException.b(_PersistenceException.java:45) at com.objectdb.o.JPE.g(JPE.java:140) at com.objectdb.o.ERR.f(ERR.java:59) at ...

 
forum_thread

Weird behaviour with enhanced classes and embedded entities

Hi, I've found some weird behaviour in my project (www.tinymediamanager.org): Sometimes some entries of my ArrayLists with embedded entities are missing. I've hunted the problem down to an enhanced/proxied list in my entity which contains embedded entities and some .add(obj) are simply failing. Here is a small sscce which reproduces the issue: ... ) { // enhance entities com. objectdb . Enhancer . enhance ( "objectdbsscce.*" ) ; ... Am I doing anything wrong or is there a problem inside ObjectDB? I've used the latest version for the sscce. If there are ...

 
issue

Feature Request: Adding map entries to DB in Explorer

Currently, collections can be edited but maps cannot be edited. For a database model that has a lot of static data that need to be entered into the database on multiple edits this presents as an inconvenience. It would be great, therefore, if we can edit maps straight from the explorer. ... posting instructions - before posting to the ObjectDB website. You may have to ...

 
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 ... history) is expected to be added in a future version of ObjectDB. Please subscribe to  this feature request  (and extend ... to an  EntityManager . ObjectDB Support ObjectDB - Fast Object Database for Java (JPA/JDO) ...

 
forum_thread

Custom Classloader: Issues with the Enhancer Agent

In my use case I generate some classes dynamically and load them with a custom classloader. The classloader is very standard and does something like this (simplified): ... ( "myGeneratedClass" ) { OBJECTDB_AGENT : performEnhancementProcess ( ) { OBJECTDB_AGENT : MemoryClassLoader. findClass ( ... for this purpose. This should be changed in future ObjectDB versions as it has many drawbacks. > Can I detect if the ...

 
manual

Detached Entity Objects

Explains detached entity objects and how to work with detached objects in JPA, including merging them into an EntityManager. Detached entity objects are objects in a special state in which they are not managed by any EntityManager javax.persistence.EntityManager JPA interface Interface used to interact with the persistence context. See JavaDoc ...

 
issue

NullpointerException when execute a commit

Hello, following exception occurs when using objectdb: ... Hello, following exception occurs when using objectdb: com.objectdb.o.UserException: Failed to commit transaction: Unexpected internal ...

 
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: ... = :template is generating this exception: [ObjectDB 2.5.1_05] Unexpected exception (Error 990)   Generated by Java ... (on Windows 7 6.1). Please report this error on http://www.objectdb.com/database/issue/new com.objectdb.o.InternalException: ...

 
issue

Explorer bug ? Objects seem to be missing from database in Class view, but are present as references

objectdb-2.2.5_08 NetbeansID6.9.1+Glassfish3.01 I suspect the following is an Explorer bug. It is marked knowingly as CRITICAL by me because it makes the ObjectDB system unusable for a real project because it appears to be either database integrity corruption, or it just looks like it, which is just as bad. I attach a running project illustrating the problem, as well as screenshots. ... 2011-06-01 19:12 objectdb-2.2.5_08 NetbeansID6.9.1+Glassfish3.01 I suspect the ... is marked knowingly as CRITICAL by me because it makes the ObjectDB system unusable for a real project because it appears to be either ...

 
forum_thread

system exception occurred during an invocation on EJB GuestDao

Hi, I am new to ObjectDB I was trying your eclipse/jee6/glassfish tutorial. Eclipse Luna, Glassfish 4. I am getting the following exception (see below) just after deploying the project. Can someone help me ?  Thanks ... Hi, I am new to ObjectDB I was trying your eclipse/jee6/glassfish tutorial. Eclipse ... Maven version of the tutorial. ObjectDB Support ObjectDB - Fast Object Database for Java (JPA/JDO) ...