About persistence

forum_thread

ODB lost?

I'm new to ObjectDB. While debugging small programs in single-step mode in NetBeans, the ODB appears to get corrupted or lost if I don't invoke close on EntityManager. If I re-run my program and get a new EntityManager, the instance behaves as if the data that was persisting is somehow gone. I noticed in the file system, indeed, the .odb file is gone, but there are <name>_<v>.odb files where <name> is the name of my odb and <v> is apparently a version number. Is there any way to recover <name>.odb? #1 2011-03-18 23:11 I'm new to ObjectDB. While debugging small programs in single-step mode in NetBeans, the ODB appears to get corru ...

 
forum_thread

Optimistic Locking

We are having problems with optimistic locking.  I made a simple test case to try to induce an optimistic lock. #1 2010-08-11 16:03 We are having problems with optimistic locking. I made a simple test case to try to induce an optimistic lock. ...

 
forum_thread

Import data from MySQL

Hi, I tried the objectdb in my research, find it very easy to handle without setting up xml files. However, I cannot find the import/export functions between other database, then how can I transfer mysql data into objectdb? When I use explorer.exe to browse the database in objectdb, eclipse tells me another app occupy it, then how can objectdb support multi-thread? #1 2011-05-17 04:11 Hi, I tried the objectdb in my research, find it very easy to handle without setting up xml files. ...

 
manual

Numbers in JPQL and Criteria Queries

Shows how numbers, arithmetic expressions and numeric functions and operators (MOD, ABS) can be used in JPQL queries.... query expressions. The CriteriaBuilder javax.persistence.criteria.CriteriaBuilder JPA interface Used to ... and parameter expressions: Expression javax.persistence.criteria.Expression JPA interface Type for query ... "population" ) ; Expression javax.persistence.criteria.Expression JPA interface Type for query ...

 
forum_thread

createNamedQuery throws wrong exception

Hello I'm tying to use ObjecDB with spring-data for JPA and there is an issue where spring-data checks for existance of named query which does not exist yet. Based on JPA specification ... for executing a named query * (in the Java Persistence query language or in native SQL). * @param name the name of a ... name ) ; however ObjectDB throws javax.persistence.PersistenceException instead of IllegalArgumentException which ...

 
forum_thread

null pointer exception in objectdb-2.4.4_06

I have the following stack trace.  Is this a null ptr in our code or in the object db code? #1 2012-12-07 14:02 I have the following stack trace.  Is this a null ptr in our code or in the object db code? Failed to ...

 
api-jdo

jdoPostDetach(detached)

This method is called during the execution of javax.jdo.PersistenceManager.detachCopy on the detached instance after the copy is made.(Method of javax.jdo.listener.DetachCallback)

 
api-jdo

setMultithreaded(flag)

Set the Multithreaded flag for this PersistenceManager.(Method of javax.jdo.PersistenceManager)

 
api-jdo

getManagedObjects(classes)

Get the objects managed by this persistence manager being instances of the specified classes.(Method of javax.jdo.PersistenceManager)

 
api-jdo

getPersistenceManagerFactory(overrides, name, resourceLoader)

Returns a named PersistenceManagerFactory or persistence unit.(Static Method of javax.jdo.JDOHelper)