About time

tutorial

Step 4: Run the Application

Running ObjectDB/JPA tutorial in the Eclipse IDE.... When you run the application for the first time, a new ObjectDB database file is generated in the db subdirectory ...

 
forum_thread

Removing an entity throws exception

Hi all, I'm testing ObjectDB for my project, but I have troubles with it. At this time I'm not able to remove customer entity, when it's read by a query (it's attached), it throws this exception: Exception in thread "AWT-EventQueue-0" java.lang.RuntimeException: com.objectdb.o._RollbackException: Failed to commit transaction: 51 ... ... for my project, but I have troubles with it. At this time I'm not able to remove customer entity, when it's read by a query ...

 
forum_thread

"Attempt to lock a non entity object" error

Probably a simple answer for someone who's been using ObjectDB for awhile: I'm reading objects from the database outside a transaction (inside doesn't seem to matter). First cycle of doEdit and then doCancelEdit works fine. Second time I doEdit produces the error "Attempt to lock a non entity object" session.rollback() is somehow causing the problem (found through debugging) Is this enough information for someone to suggest what might be happening and how to fix it? ... of doEdit and then doCancelEdit works fine. Second time I doEdit produces the error "Attempt to lock a non entity object" ...

 
api-jpa

javax.persistence.Temporal

This annotation must be specified for persistent fields or properties of type java.util.Date and java.util.Calendar.(Annotation of JPA)

 
api-jpa

persist(entity)

Make an instance managed and persistent.(Method of javax.persistence.EntityManager)

 
api-jdo

getRetainValues()

If true, at commit time instances retain their field values.(Method of javax.jdo.Transaction)

 
forum_thread

Is there an update on running ObjectDB purely in-memory?

Hi, I know that this has been asked, but the last time seems to be two years ago, so I'd like to know whether there is a change or an outlook regarding the topic: Is it possible, or planned, to run ObjectDB purely in-memory, without a any file on disk? Note that "file on RAM disk", which was proposed in the past, is not an option for the application I have in mind. It would need to be true in-memory mode, as supported by SQL databases like H2 or SQLite. Thanks, David ... Hi, I know that this has been asked, but the last time seems to be two years ago, so I'd like to know whether there is a ...

 
api-jpa

javax.persistence.OptimisticLockException

Thrown by the persistence provider when an optimistic locking conflict occurs.(Exception of JPA)

 
api-jdo

addInstanceLifecycleListener(listener, classes)

Add the parameter listener to the list of instance lifecycle event listeners set as the initial listeners for each PersistenceManager created by this PersistenceManagerFactory.(Method of javax.jdo.PersistenceManagerFactory)

 
issue

ObjectDB enhancement fails on "is" form for @Transient boolean isLoaded(), ok for "getter" form @Transient boolean getLoaded()

Older objectdb-2.4.0_06, Java6. For the following (note the use of "is" form) in a class Element I encounter ObjectDB enhancement errors: ... } No matter whether using javaagent run-time enhancement or post-compile enhancement, and on complete clean and build ... matter whether using compile-on-save or not) I get at run-time this error (and for every subclass entity): INFO: [2014-11-23 ...