About Date


Mapped By Fetch is very Slow

Well ! I think i pointed out a HUGE performance issue with mapped-by attribute (yeah again :( ). Here is the test case : 1- Create 100 000 entities with for each 1 entity with @OneToOne(mappedBy attribute) 2- Retrieve only 10 000 for testing 3- Wait ... On my AMD FX 8350, it took 60s Now, go the MyEntity class and remove "mapped-by". You obtain 1 second max of query fetch. ... ( ) ;   Long start = new Date ( ) . getTime ( ) ;   ... ( ) ;   Long end = new Date ( ) . getTime ( ) ;   Long ...


Use temporary files to enable very large transactions

We have transactions in which many objects are created. These objects are no longer needed in the current transaction after creation. Unfortunately, we will receive an OutOfMemory exception because the objects are kept in the first level cache of ObjectDB. In the forum thread http://www.objectdb.com/database/forum/921 on post #4 you wrote, that ObjectDB should support very large transactions in further version. Can you implement it that ObjectDB used temporary files? ... reference_path_of_type_Date.PNG reference_path_of_type_EEI.PNG ... TemporalType . TIMESTAMP ) private Date date ;   /** * Construct a new message and set its date to ...


[ObjectDB 2.5.5_03] Unexpected exception (Error 990)

Hello! When I run this query SELECT t FROM Unit t WHERE t.lastGeocodedPosition IS NULL OR t.lastGeocodedPosition.receiveTime < :lastGeocodedPosition.receiveTime I get the following exception: ... absolutely right. This query works. Actually I passed a date parameter before but my WHERE clause generator simply took the filed name ... . receiveTime1u6kopqt6zmjo ) Then a date is set on ":lastGeocodedPosition.receiveTime1u6kopqt6zmjo". ...


Schema Update

Explains how to handle JPA/JDO database schema evolution in ObjectDB.... usually be located on the client side where the up to date classes are located. The following <schema> element ...


PostUpdate collection null

Hello, I have an entity MyEntity with a collection attribute myCollection. I have an EntityListener on MyEntity with a @PostUpdate method. When I try to access myCollection from the PostUpdate method, this collection is null. If I try to access the collection from the PreUpdate method, the collection is populated. The collection is eagerly fetched. public class MyEntity {     @OneToMany(fetch=FetchType.EAGER)     private ArrayList<OtherEntity> myCollection = new ArrayList<OtherEntity>(); ... class F832 { static java. sql . Date myDate ;   public static void main ( ...


Many clients access same database

Hi, I have a program to manage clients of my tennis club. But we have several different computer programs open that access the database. How can I implement this topology so that there is one Persistence context for all the client programs on the different computers. For example: When I change the name of a client on 1 computer, that change has to be discovered by the other client programs as well. How is this possible? ... You may have to refresh objects to get their up to date content. ObjectDB Support ObjectDB - Fast ...


[ODB1] Chapter 3 - Persistent Classes

Explains what a persistence capable class is and which types are supported by JDO.... . Selected classes in package java.util : Date , Locale , HashSet , TreeSet , ArrayList , LinkedList , ... automatically converted into an instance of the new up-to-date persistent class. The conversion is straightforward. New persistent ...


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 != '' 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: ... in RecordingMetaData as follows: private Date startDateTime ; // Time stamp: start of recording in local time ... the NullPointerException. Note that r.startDate is also a Date member like r.startDateTime.   ...


Failed to read DB file while online backup is running

Hi, it happened already few times (seemingly randomly), that some db operation (read and also write) failed with an exception during an online backup of the same DB file was running and was close to finish its task. The version of ObjectDB I am running is 2.6.1.b02 Any idea what is causing this and how to avoid it ?   Stacktrace 1: ... 1000l ;   public void performTask ( Date date ) { long wholestart = D. profile ( ...



This class is a helper class for JDO implementations.(Class of JDO)