About new

manual

[ODB1] Chapter 6 - Persistent Objects

Shows how to store, retrieve, update and delete database objects. ... to any database. Storing Objects Explicitly When a new object is constructed by the new operator, it always starts as a transient object, regardless of its type. ...

 
forum_thread

Exception when querying Map property with @embedded & Enhancer enabled

Hi, I have the following test class that is failing when the enhancer is enabled, resulting in the error 'Failed to write the value of field field TestEmbeddableMap$MyAttributeItem.id using enhanced method.', if I disable the enhancement the test works as expected, and returns the expected MyEntity2 Thanks   ... ) ;   MyEntity2 entity = new MyEntity2 ( "entity1" ) ; entity . put ( "key1" , new MyAttributeItem ( "id1" , "name1" , "value1" ) ...

 
release

2.4.1

... 2.4.1 Fixed a bug of  duplicating new objects during merge . Fixed a username/password issue in ... of non ASCII string indexes. Fixed the new query HOUR function to return hours as 0 to 23 (using 24-hour clock). ...

 
release

2.3.5

... and TIME(...) methods in queries. Added new Explorer and Server exe (for Windows 7 and 64 bits). ... in queries. Fixed a bug in passing a new entity object with no id as a query argument. Fixed a bug in ...

 
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 ... can add events to given object without using EM to persist new object. What I want to accomplish is to log difference between new and old values for every change in database. This is example how ...

 
forum_thread

Should derived fields of an EmbeddedId be manually maintained by app code?

If I have an Entity which has a primary key which is derived and I am implementing it using @EmbeddedId, am I responsible for maintaining the derived fields of the @EmbeddedId? I could not find anything in the JPA 2.0 spec http://download.oracle.com/auth/otn-pub/jcp/persistence-2.0-fr-oth-JSpec/persistence-2_0-final-spec.pdf?e=1317047713&h=54831c176e81a244a4c309e13eba0b27 which tells me what to expect. ... item == null ) { throw new TestException ( "cannot find ECompoundKeyMapItem 1" ) ; ... this error on http://www.objectdb.com/database/issue/new com.objectdb.o.InternalException: null com.objectdb.o.InternalException at ...

 
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.... to manage guestbook web requests: Open the [New Servlet] dialog box by right clicking the guest package node (in the [Projects] window) and selecting New > Servlet ... Enter GuestServlet as the class name - ...

 
forum_thread

openejb jpa jaas module

    hello , i've finished jpa jaas module. Here it is :   package com.bayner.auth; import com.bayner.jpa.Principals; import com.bayner.jpa.UserInfo; import com.bayner.jpa.UserPrincipal; ... Map<String, ? > sharedState = new HashMap<String, Object> ( ) ; private ... ;   final Properties properties = new Properties ( ) ; properties. put ( ...

 
manual

[ODB1] Chapter 2 - A Quick Tour

Demonstrates basic database programming using ObjectDB. ... // If not found - construct and store a new list: 24 list = new ArrayList ( ) ; 25 Utilities. bind ...

 
forum_thread

significant performance decrease

we are using objected in embedded mode (on OS X and WINDOWS). The database increased now to around 400000 entities of one class (database file size around 1.5 GByte). The response time of standard queries increased with this database size to an unacceptable rate (several seconds compared to around 30% when the number of entities was just half of the current). We tried to optimize the cache settings, current objectdb.conf is: <!-- ObjectDB Configuration --> <objectdb> ... Map<String, String> currentJournalData = new HashMap<String,String> ( ) ; public String ... Map<String, String> systemDictionary = new HashMap<String,String> ( ) ;   @ ...