About modify

forum_thread

Fetching Collections Puzzle

I am working on a project where I need to travel through a massive graph of objects. One of the main entity is the Node which is shown below. class Node { Node parent List<Node> children Node rightSibling Node leftSibling int rank } I have the following issues/doubts #1 2011-04-23 23:08 I am working on a project where I need to travel through a massive graph of objects. One of the main entity is th ...

 
forum_thread

Connection performace after upgrade to objectdb 2

Hi, I have a problem with objectdb 2 when I tried to get the PersistenceManagerFactory and PersistenceManager : In objectdb 1 : PersistenceManagerFactory pmf = JDOHelper.getPersistenceManagerFactory(getProperties(physicalPath, objectName), JDOHelper.class.getClassLoader()); takes only 3ms PersistenceManager pm = pmf.getPersistenceManager(); takes 40ms However, with objectdb 2, the same instructions take respectively : 257ms and 238ms which is very expensive. #1 2012-12-10 17:32 Hi, I have performance problems with objectdb 2 when I tried to get the PersistenceManagerFactory and Per ...

 
forum_thread

Is it possible to remove parent/child entities without refresh?

We have a big object tree in our project. If I use the entityManage.remove method a entityManager.refresh is necessary in order to have an updated object tree in memory. But entityManager.refresh is too slow for our project. Do you know a possibilty to remove parent/child entities without entityManager.refresh after the entityManager.remove operation? I have searched for a solution with the following unit test (See testRemoveVariant2()). But my approach works correctly. Do you have an idea? #1 2015-01-13 07:41 We have a big entity object tree in our project. If I use the entityManager.remove(childEntity) method to remove ...

 
issue

InternalException when using MEMBER OF on a large list in a query

Hello, we get when executing a query with MEMBER OF on a large list the following InternalException: Caused by: com.objectdb.o.InternalException: merge2 com.btc.ep.coverage.bl.internal.dmos.CoverageRecordImpl:null => merger[2850057]-missing:223 at com.objectdb.o.PBI.B(PBI.java:124) at com.objectdb.o.PBI.q(PBI.jave:97) at com.objectdb.o.OBI.Vp(OBI.java:244) (... more see attached Image) Our query looks like this: Bug Version: Priority: High Status: Fixed Replies: 5 Type:  Bug ...

 
forum_thread

UserException: Invalid configuration in 'internal' - Check permissions

Hi all,   I have a master/slave code so that each slave reads a subset of points of the same database. ObjectDB entities do not allow serialization and so I have sent, to each slave, the file path. With such information I have tried to create an entityManager, in each slave, as follows: EntityManagerFatory entityManagerFactory = Persistence.createEntityManagerFactory(filePath); EntityManager = entityManagerFactory.createEntityManager(); However I get the following error #1 2014-07-01 18:39 Hi all,   I have a master/slave code so that each slave reads a subset of points of the same ...

 
forum_thread

Maven driven compile time ehnancement

Hi,    Just thought I'd share a small bit of Maven config to aid in enhancing persistent classes during compile time. Just add the following to your pom.xml: #1 2011-04-28 02:35 Hi,    Just thought I'd share a small bit of Maven config to aid in enhancing persistent cl ...

 
manual

Database Management Settings

Explains settings and performance tuning of the ObjectDB Java object database for JPA/JDO.... For backup purposes only "write" operations (which modify the database) have to be recorded. For debugging of query failure it ...

 
manual

Literals in JPQL and Criteria Queries

Describes literals in JPQL, including null, false, true, numbers, strings, dates enums and types. Literals in JPQL, as in Java, represent constant values. JPQL supports various types of literals including NULL , boolean literals ( TRUE and FALSE ), numeric literals (e.g. 100 ), string literals (e.g. 'abc' ), enum literals ( ...

 
issue

Schema-Update: Deactivation of automatic entity class removing and introduction of a new class remove in the schema config

Hello, in our application we use ObjectDB in embedded mode as part of the Profile that can be stored and opened by our customers. Our application is an eclipse RCP application with a domain-driven design. The product can be installed in different configurations (in other words with more or less PlugIns). This presents us with further challenges when we have made changes to DB schema for new versions. Feature Request Version: 2.7.1 Priority: High Status: Active Replies: 4 Type:  Feature Request ...

 
forum_thread

OneToMany and cascade delete problem

Hi, I don't really know if this is a bug or maybe model that I make is bad. I have a problem with with two different classes with OneToMany relation to one, shared class. For example (first class): @Entity public static class Store { @OneToMany(targetEntity = Offer.class, mappedBy = "store") private List<Offer> offers; } second class: #1 2011-09-19 16:33 Hi, I don't really know if this is a bug or maybe model that I make is bad. I have a problem with wit ...