About object

forum_thread

ID format in objectdb 2.x for JDOHelper.getObjectId

Hi, I am trying to upgrade the objectdb from 1.x to 2.x. I installed and configured as per object db tuotrial. I am just wondering, in objectdb 1.x, when i am tring to get the object id for a persistable object, i am getting an integer as a result e.g Object obj = JDOHelper.getObjectId(logTestRunImpl) used to return suppose 1 obj.toString() = 1 but the same code when i am trying to execute for the same object in object db 2.x, i am getting ... from 1.x to 2.x. I installed and configured as per object db tuotrial. I am just wondering, in objectdb 1.x, when i am tring to get the object id for a persistable object, i am getting an integer as a result ...

 
api-jdo

javax.jdo.identity.ObjectIdentity

This class is for identity with a single Object type field.(Class of JDO)

 
release

2.5.7

... #201). Fixed an exception when accessing an object with a closed EntityManager . Fixed a bug in viewing ... Changed merge implementation (removed temporary object clearing). Fixed the Explorer to show null values in ...

 
forum_thread

On ensuring ID available after persist

This reports on a possible solution to a common problem: I was trialling ObjectDB on an existing, functioning, large JavaEE/JPA web application, which until now had used EclipseLink+MySQL and then Oracle+MySQL. On trying it out on ObjectDB I hit a problem with my very extensive entity wiring code, which relies on an "external" entity object having a non-null id after it has been passed to EntityManager.persist, thus: ... entity wiring code, which relies on an "external" entity object having a non-null id after it has been passed to EntityManager.persist, ... time). This can be encapsulated as a wrapping persist(Object) method that also always flushes after persist(), to afford central ...

 
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   ... Failed to commit transaction: Optimistic lock failed for object   edit ... the optimistic lock exception fails repeatedly once the object is modified from another process. ie: process A modifies the ...

 
release

2.6.0

... ). Fixed refresh of a new managed entity object after flush . Version 2.5.7 Added Refresh ... #201). Fixed an exception when accessing an object with a closed EntityManager . Fixed a bug in viewing ...

 
forum_thread

Reading 1.x odb files in ObjectDB 2.x without upgrading

Hi, We have a problem in the backward compatibilty in our software as once we have migrated object db odb file from version 1.x to 2.x, user is unable to open the odb files in the application which is having object db 1.x installed. Is there any way to read odb files from 1.x in object db 2.x without upgrading it ? Or user can see the content in read only mode without upgrading it ? Thanks ... compatibilty in our software as once we have migrated object db odb file from version 1.x to 2.x, user is unable to open the odb files in the application which is having object db 1.x installed. Is there any way to read odb files from ...

 
release

2.4.4

... Changed merge implementation (removed temporary object clearing). Fixed the Explorer to show null values in ... (including on mapped by collections). Fixed object duplication on cascading merge ( issue #110 ). Fixed an ...

 
api-jdo

getObjectState(pc)

Accessor for the state of the passed object.(Static Method of javax.jdo.JDOHelper)

 
manual

Locking in JPA

Explains how to use optimistic locking and pessimistic locking in JPA.... Locking in ObjectDB (and in JPA) is always at the database object level, i.e. each database object is locked separately. Optimistic locking is applied on ...