About commit

issue

JDO PersistenceManager.getSequence() returns null sometimes

When using JDO without annotations, database sequences are normally defined in the ORM file. Following discussion on the forum I was told that ObjectDB supports sequences if specified in the JDO file. Unfortunately, it doesn't seem to be supported consistently. It appears to work only in the situation that a new odb file has just been created AND something has been persisted to it. If nothing has yet been persisted, or if the odb file is not newly created, getSequence() returns null. Code to reproduce: ... ; pm. currentTransaction ( ) . commit ( ) ;   Sequence seq2 = pm. ...

 
forum_thread

@Transient

Hello, I have a persistent class which looks something like this: @Entity public class Test { private String string; private Date date; @Transient private boolean test; // getters/setters } When I persist the class the transient 'boolean test' is stored in the database, maybe I am doing it wrong but I expect... ; odb. getTransaction ( ) . commit ( ) ;   return agency ; } ...

 
forum_thread

best practice for DB recovery

Hi, I'm trying to come up with the best approach for supporting some kind of hot standby for my master DB. #1 2012-03-07 22:26 Hi, I'm trying to come up with the best approach for supporting some kind of hot standby for my maste ...

 
manual

Index Definition

Describes how to define indexes in JPA entity classes and explains how indexes are used in JPQL queries.... indexed field. A PersistenceException is thrown on commit (or flush) if different entities have the same value in a unique field ...

 
release

2.2.2

... Fixed a bug in queries on deleted objects before commit / flush. Version 2.2.0 Added full support of ...

 
forum_thread

Memory consumption of empty Strings

After doing some memory related research in my program, I found a possible place for an enhancement of objectdb: My program has several entities which contain many String. Often some of these String are empty (""). To avoid unnecessary memory consumption, the String within the entities are initialized like: String firstName = ""; ... entityManager. getTransaction ( ) . commit ( ) ; entityManager. clear ( ) ...

 
tutorial

Step 4: Add a Servlet Class

Explains how to add a servlet that manages persistence using JPA and ObjectDB to a NetBeans Web Application.... em. getTransaction ( ) . commit ( ) ; }   // ...

 
issue

JPQL support for mapped by (inverse) collections

As discussed and demonstrated in this forum thread, collection methods (IS EMPTY, SIZE, MEMBER OF, IN) are not supported for mapped by (inverse) collections.   ... ; em. getTransaction ( ) . commit ( ) ;   //Query query = ...

 
tutorial

Step 4: Add a Servlet Class

Explains how to add a servlet that manages persistence using JPA and ObjectDB to an Eclipse Web Application.... em. getTransaction ( ) . commit ( ) ; }   // ...

 
api-jdo

deletePersistent(pc)

Delete the persistent instance from the data store.(Method of javax.jdo.PersistenceManager)