About Id

forum_thread

lockfiles in client/server mode

i have an objectdb server running on localhost as user "objectdb", spawned like so: java -server -cp /usr/local/share/objectdb/objectdb.jar: com.objectdb.Server -conf /etc/objectdb/objectdb.conf start it has naturally created and taken ownership of /tmp/ObjectDB. ... my user account, and this has been successful since the ID numbers the lockfiles are generated with are highly unlikely to collide. ...

 
page

Posting to ObjectDB Website - Important Instructions

Instructions for posting to ObjectDB website (to the forum, the issue tracking and the help desk)....  please ignore its strict JPA warnings (There is no ID defined for this entity hierarchy, The class should have a no-arg public or ...

 
forum_thread

ClassCastException of same object type

I have ObjectDB partially working with my project. At the moment it seems to be saving objects and retrieving objects ok in the main project. However, when I make a plugin for the project, the new objects are persisted but not retrieved. I get the following error: java.lang.ClassCastException: org.sportscoring.ssv.xc.core.XCCompetitorCount cannot be cast to org.sportscoring.ssv.xc.core.XCCompetitorCount ... is the @Id of the entity. Originally I had it as @PrePersist. I then tried explicitly ...

 
forum_thread

Out of memory

Hi, Today in the middle of the night ODB just crashed leaving this on console screen: ... [ 1 ] Unexpected last index ID: 3624386649387068524 ( expected -317 ) [ 2 ] Unexpected last type ID: 7882821588231142770 ( expected 113 ) [ 3 ] ...

 
forum_thread

OptimisticLockException

Ran into this error for the first time (after many years of using odb): Caused by: com.objectdb.o._OptimisticLockException: Optimistic lock failed for object model.UserSession#28 (object has version 2 instead of 3) Also the first time I'm using odb in C/S mode rather than embedded. Also have the Explorer open Questions: a) what is it about? ... from a pessimistically locked entity (global tracking id generator, specific to internal requirement) - and got the same issue - but ...

 
forum_thread

OneToMany and cascade delete problem

Hi, I don't really know if this is a bug or maybe model that I make is bad. I have a problem with with two different classes with OneToMany relation to one, shared class. For example (first class): @Entity public static class Store { @OneToMany(targetEntity = Offer.class, mappedBy = "store") private List<Offer> offers; } second class: ... at com.objectdb.test.bug.forum.F258$Product.__odbGet_id ( F258. java :1 ) at ... but all fields in related Product are nullified. Only ID stay the same. There is no exception for this example, but if you look at ...

 
release

2.0.5

... enhanced classes. Added Explorer support of ID / version / inverse (mapped by) fields. Fixed Explorer bug in ...

 
release

2.0.3

... enhanced classes. Added Explorer support of ID / version / inverse (mapped by) fields. Fixed Explorer bug in ...

 
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. ... the correspondent row in the DB by the matching and unique ID field. Is there a similar option für ObjectDB? If I were unable ...

 
issue

Unexpected exception (Error 990) on find

I have a huge amount of inserts/updates and after a about 850.000 Entities I got the following error: ... I've found something out. When I change my Id to a unique Column it seams to work without an error and the Doctor reports ... think this limit should have no effekt   // @Id // with this instead of the unique column it won't work @ ...