About Entity

issue

ClassCastException thrown when running count query

Hello! Attached you find a full stacktrace. The query was: ... Query. Then i realized that the cascade option in the entity class is ignored when doing DELETE. I then tried to delete the orphans. ...

 
forum_thread

Recursive calls with @PreUpdate annotation and Glassfish OutOfMemoryError

Hi,    I've had an issue that started today and it's got me stumped. I've got a subclass User, which extends a BaseEntity. The BaseEntity has a @PreUpdate as per: ... itself) that modifies a field on the base class of the entity hierarchy?   My listing of assumptions above is ...

 
forum_thread

ClassCastException on SELECT NEW ... after UPDATE over Java RMI

Hi, we are using ObjectDB 2.5.4_04 on Linux. Our application, which uses ObjectDb as a DB, exposes a Java RMI interface which allows remote RMI clients to run JPQL queries on the DB. The application internally runs SELECT NEW ... queries. For example: ... The value of the id field in entity object RecordingMetaData#9897 is Integer rather than Long. ...

 
forum_thread

Updating existing persistence entries

I have stored some instances of MyObject via em.persist(myObjectInstance); I can fetch them and bind them to a kind of property editor in my app (it simply calls the setters to reflect gui editing actions). When I try to persist a object later on, I get an error like com.objectdb.o.UserException: Attempt to reuse an existing primary key value which makes sense to me but I'm missing a em.update() method. ... to take effect. It would be simpler to use the managed entity objects as the beans, and then you do not have detached objects and ...

 
forum_thread

Memory Leak?

... Could you please post the source code of the Device entity class? ObjectDB Support ObjectDB - Fast ...

 
forum_thread

Spring Data JPA

Hello! When i configure Spring Data JPA to use ObjectDB 2.4.0_03 i get an exception when the context starts. ... exception right Spring Data JPA calls getMetamodel on the entity manager factory and this initiates a connection to the server with ...

 
forum_thread

Integration

Hi,   Is there a way to integrate ObjectDB with Spring Framework to add the benefits of Transaction Management and DAO Support?   Regards,... use. i can see a warning in the odb log file about my entity not being enhanced. another option is using antrun but i would want ...

 
manual

Query Parameters in JPA

Explains how to use parameters (named parameters and ordinal parameters) in JPA queries.... support elements that are unavailable as literals, such as entity objects. API Parameter Methods Over half of the methods ...

 
forum_thread

ODB should auto-restart if it detects it's necessary

Hi! I find very tricky the need to restart ObjectDB server after schema modifications in a distributed environment. Moreover, not doing it does sometimes trigger ugly errors, which mean application downtime. It might be very useful to have an additional feature (that could be enabled/disabled in objectdb.config) that each time ObjectDB detects a schema change that requires restart, it should automatically restart itself. This way we save a lot of headaches from our dev. ops. Currently we have to manually do: ... Failed to read the value of field field xxx.xxx.entity.p2.ExerciseSetResult.rest using reflection at ... with: Enhancer. enhance ( "xxx.xxx.entity.p2.*" ) ; com.objectdb.o.InternalException: null at ... com.objectdb.o.UMR.readAndAdjust(UMR.java:653) at xxx.xxx.entity.p2.ExerciseSetResult.__odbReadContent(ExerciseSetResult.java:1) at ...

 
forum_thread

Add class to objectdb ?

Hello , i've made blank db project and opened with explorer.jar How can i add class file then push objects manually by explorer.jar   It only gave me blank : http://img543.imageshack.us/img543/7463/screenshot20130203at001.png       ... using: emf. getMetamodel ( ) . entity ( "MyEntity" ) ; ...