About Persistence Context

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,... in my maven build. i tried a class entry in my persistence.xml but that didnt seem to be working. i tried adding compiler ... Use ctrl + right click to open the browser context menu in the editing area (e.g. for using a browser spell ...

 
forum_thread

Unable to execute update query

Hello! I'm trying to do an update query via the explorer to set a new field value for around 400k objects. UPDATE Position p SET p.originalData = null This exception raises when I try to do it: ... when I try to do it: [ObjectDB 2.6.5_04] javax.persistence.PersistenceException Failed to read from file ... 39 more [ObjectDB 2.6.5_04] javax.persistence.PersistenceException Failed to read from file ... Use ctrl + right click to open the browser context menu in the editing area (e.g. for using a browser spell ...

 
forum_thread

Replicated cluster recovery

If I create a replicated database cluster as per http://www.objectdb.com/java/jpa/tool/replication what is the behaviour of the master database after a failure? For example, say I have MasterDB and SlaveDB in the cluster. If MasterDB goes offline the application will automatically switch to SlaveDB. When MasterDB comes back online it will have missed any activity that occured during the downtime. ... Use ctrl + right click to open the browser context menu in the editing area (e.g. for using a browser spell ...

 
forum_thread

DB Doctor sets type to "unknown" for new fields

Hi, we are using ObjectDB 2.5.4_04 on Linux. We added two new Boolean fields to a persistable type and run DB Doctor on the exiting DB file in order to update the schema. The fields are added to the schema as expected, however their type is set to unknown - we were expecting Boolean. The attached DB file is what was produced by DB Doctor after adding the emergency and broadcast fields. If you run in DB Explorer ... Use ctrl + right click to open the browser context menu in the editing area (e.g. for using a browser spell ...

 
forum_thread

OptimisticLockException

Have read read the documentation on optimistic locks, still not sure how to deal with these exceptions: [ObjectDB 2.2.5_04] javax.persistence.RollbackException Failed to commit transaction: Optimistic lock failed for object   ... with these exceptions: [ObjectDB 2.2.5_04] javax.persistence.RollbackException Failed to commit transaction: Optimistic lock ... Use ctrl + right click to open the browser context menu in the editing area (e.g. for using a browser spell ...

 
forum_thread

Activation error on Schema change

Hi, 1) Is @OrderBy annotation supported ? When I add this annotation to my entity I get an error, saying that I did not activate my ObjectDB (which I did) : ... Use ctrl + right click to open the browser context menu in the editing area (e.g. for using a browser spell ...

 
forum_thread

Index causes increased memory usage

Hello, ... Use ctrl + right click to open the browser context menu in the editing area (e.g. for using a browser spell ...

 
forum_thread

TreeSet and compareTo() issue

Hi I'm trying to use TreeSet but getting NPE on the compareTo() method when it does a find(): ... Use ctrl + right click to open the browser context menu in the editing area (e.g. for using a browser spell ...

 
issue

[ObjectDB 2.4.1] Unexpected exception (Error 990)

Hi, getting this unexpected exception, would welcome advice: ... with invalid DELETE query: import javax. persistence . *;   public class I156 {   ... EntityManagerFactory emf = Persistence . createEntityManagerFactory ( "objectdb:d: \\ temp ...

 
forum_thread

Conditional Selection

I have an Employee class that holds... private String firstName = "-"; private String middleName = "-"; private String lastName = "-"; I do not require that an Employee's middle name be provided so when I use... SELECT firstName + " " + middleName + " " + lastName FROM Employee     ORDER BY lastname, firstname, middleName I may end up with the result list of... ... Use ctrl + right click to open the browser context menu in the editing area (e.g. for using a browser spell ...