About result

forum_thread

OptimisticLockException

Ran into this error for the first time (after many years of using odb): Caused by: com.objectdb.o._OptimisticLockException: Optimistic lock failed for object model.UserSession#28 (object has version 2 instead of 3) Also the first time I'm using odb in C/S mode rather than embedded. Also have the Explorer open Questions: a) what is it about? ... using 'merge' that they require to assign back the result of the merge. Still haven't used ObjectDB in embedded mode. My issue ...

 
manual

[ODB1] Chapter 3 - Persistent Classes

Explains what a persistence capable class is and which types are supported by JDO.... enhancer modifies the byte code of these classes, and the result is classes that do implement the PersistenceCapable interface. The ...

 
manual

JPA Primary Key

Explains how to define and use primary keys in JPA, including composite and embedded primary keys.... is especially useful when using queries that return large result sets. As an example, consider a real time system that detects ...

 
forum_thread

LAZY @ManyToOne field functions as EAGER

In the code example below (also attached) I would like to understand why I am able to print to console a lazy @ManyToOne field after the entity manager closes. There is a switch DO_VIEW_BEFORE_CLOSE, and when it is true the fields are accessed and output before the finding entity manager closes and as expected both a LAZY @ManyToOne field and an EAGER @ManyToOne field are viewable: b.cLazy:{C}[2]"cLazy"
 b.cEager:{C}[3]"cEager" ... thanks for explanation, have tested and confirmed result. --- Webel IT Australia, "The Elements of the Web", ...

 
forum_thread

Homepage and forum nearly inaccessible

... our internal website search box) in order to index search result pages from ObjectDB. The search itself is a heavy operation, ...

 
issue

Error on commit

I get the following on commit:  (v2.3.7_15) Let me know if you need more info. ... are normal when using DEBUG level logging. As the result of the exception in #1 you should have in the log file lines such as: ...

 
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

Entity listener - event instead of object

Hi, Currently I'm playing with entity listener to implement auditing with difference between values in updated entity. There is a problem however with accessing "old" version of object stored in database. I can't find the nice way to use EntityManager in EntityListener. Because of that, I can't store separate entity for given event. Right now I'm using BaseEntity which contains ... See JavaDoc Reference Page... method and cast the result to an  EntityManager . ObjectDB Support ...

 
forum_thread

Query vs Extent for retrieving data

I'm running into a problem where data that is retrieved via a Query comes out null, but when I retrieve it using an Extent everything is present. We have a very simple class: public class PositionReportManagerBean implements InstanceCallbacks { private int maxReports; private List<PositionReportBean> reports; } I have a test file with 5 instances of PositionReportManagerBean, each with maxReports set to 10 and 5 PositionReportBeans in reports. I can verify with the ObjectDB explorer that all of the data is there. If I call #1 2011-12-13 23:17 I'm running into a problem where data that is retrieved via a Query comes out null, but when I retrieve it us ...

 
page

ObjectDB License Agreement [ver. 2.0.4]

Please read carefully this software license agreement. By downloading, installing or using the software you agree to the terms and conditions of this agreement. If you do not agree to these terms and conditions - do not download, install or use the s ...