About start

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. #1 2012-12-07 19:29 I have stored some instances of MyObject via em.persist(myObjectInstance); I can fetch them and bind them ...

 
forum_thread

Guestbook example from tutorial does not work.

Hi, I have Problems to initialize objectdb in a jee envoirment. I used the Guestbook from the tutorial and try to deploy on Tomcat but i get this error. Caused by: org.apache.tomee.catalina.TomEERuntimeException: org.apache.openejb.OpenEJBException: Creating application failed: /objectdb-2.6.2/tutorials/guestbook-jee6/target/Guestbook: org.apache.openejb.OpenEJBRuntimeException: java.lang.ClassNotFoundException: com.objectdb.jpa.Provider: java.lang.ClassNotFoundException: com.objectdb.jpa.Provider #1 2015-05-31 11:51 Hi, I have Problems to initialize objectdb in a jee envoirment. I used the Guestbook from the tut ...

 
forum_thread

Optimistic locking failure

Optimistic locking failure: I am using a Semaphore to force this execution of concurrents transactions T1 and T2 that cause parallel updates to A/B but it does not throw an OptimisticLockException and roll back. #1 2012-04-30 16:02 Optimistic locking failure: I am using a Semaphore to force this execution of concurrents transactions T1 ...

 
forum_thread

Update Entity references if we change the type of an entity

Hello, we must change (extend) our entity model and therefor we convert the type of some entities. As example (like in the attached example): We have an EntityA that have a reference to an EntityB. ... close to our next release, so we want to know if we need start implementing a workaround, whether you consider the behavior? If you ...

 
manual

[ODB1] Chapter 5 - JDO Connections

The PersistenShows how to use database connections and transactions in JDO. ceManagerFactory interface represents a factory of database connections. Its main role is to provide PersistenceManager instances. The PersistenceManager interface represents a database connection. Every operation on a database requires a PersistenceManager instance. The Transaction interface represents a transaction on a database. Every operation that modifies the content of the database requires an active transaction.[toc hidden:1] This chapter describes three essential interfaces for using JDO: 5.1  javax.jdo.PersistenceManagerFactory 5.2  javax.jdo.PersistenceManager 5.3  javax.jdo.Transaction The PersistenceManagerFactory ...

 
forum_thread

Missing atificat for ObjectDB?

Hello! I am testing the Spring MVC and JPA tutorial, and always got an error in the POM file: <dependency>             <groupId>com.objectdb</groupId>             <artifactId>objectdb</artifactId>             <version>2.0.4</version>         </dependency>   #1 2013-11-11 22:49 Hello! I am testing the Spring MVC and JPA tutorial, and always got an error in the POM file: <depend ...

 
issue

[ObjectDB 2.4.1] Unexpected exception (Error 990) on getObjectById

In this code: String id = "my key"; itemDb = pm.getObjectById(ABC.class, id); I get this: ... ObjectDB into an existing rather complex app, rather than start from scratch, so it isn't feasible to extract a test case in the time ...

 
forum_thread

Attempt to open a non existing file '/tmp/objectdb_xxxx/SortQueryItr_6.mrg'

Hi, I came across an error - but i have not been able to create a simple reproducible case - the error does not happen often and does not happen always -  Let me explain: 1/ I run 5 java applications at the same time on one machine - each application is using an ODB file (each one is using a different one). Basically each application does a sorted query ( qqq = em.createQuery("SELECT bk FROM OBN bk ORDER BY bk.time ASC", OBN); ) 2/ after a little while - some of the applications throws this error message: #1 2015-02-11 03:52 Hi, I came across an error - but i have not been able to create a simple reproducible case - the error do ...

 
forum_thread

java.lang.NullPointerException when using ORDER BY

We are using ObjectDB 2.5.1_04. The following query causes an internal null pointer exception: SELECT r FROM RecordingMetaData AS r WHERE ((r.mapToCli != '192.168.10.200:9085' AND r.callDirection == 0)) ORDER BY r.startDateTime DESC If we remove the ORDER BY part, the query completes OK and returns the records from the DB, but obviously not in order. Here is the stack trace of the exception: ... private Date startDateTime ; // Time stamp: start of recording in local time zone : private String ...

 
forum_thread

ObjectDB within a resource adapter module and Java EE Connector Architecture

Has anybody managed to use ObjectDB in a resource adapter module in accordance with the Java EE Connector Architecture so that it may be packaged separately from (but used by components of) an EJB Module after the pattern of the classic EAR File structure as illustrated in the Java EE 7 tutorial in Figure 5-1 EAR File Structure ? ... name. Under http://www.objectdb.com/java/jpa/start/connection it is explained that: 'JPA requires the ...