About Persistence Context

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

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 ...

 
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 ...

 
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

wrong query result

Hi we have a problem with queries, database is returning wrong results. These are the queries we run from ObjectDB explorer. ... 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 ...

 
forum_thread

Create simple index for a Id field

Hello, I just wanted to write another anotation to my key field so I can have a really simple index. This is the original code: @Entity public class ObjectDbEntity<Key,Value> implements DataItemProvider<Value> {         @Id     private Key key = null;     private Value value = null; and I just want my key to be indexed on my db, just like this: ... (ObjectDB or other) provides many advantages, including persistence, advanced queries, transactions, etc. but you may still want to ... Use ctrl + right click to open the browser context menu in the editing area (e.g. for using a browser spell ...