About new

page

What is new in ObjectDB 2.0?

ObjectDB 2.0 supports many new features and improvements, including: Most of the features of the new JPA 2.0 and JDO 2.2 APIs. User defined IDs (primary key) and ...

 
tutorial

Step 2: Define a JPA Entity Class

Explains how to define a JPA entity class in an Eclipse Web Application.... need to define an entity class: Open the [New Java Class] dialog box, e.g. by right clicking the project node (in the [Package Explorer] window) and selecting New > Class . Enter guest as the package name - use ...

 
tutorial

Step 2: Define a JPA Entity Class

Explains how to define a JPA entity class in a NetBeans Web Application.... JPA we need to define an entity class: Open the [New Java Class] dialog box, e.g. by right clicking the project node (in the [Projects] window) and selecting New > Java Class ... Enter Guest as the class name - use exactly ...

 
manual

Working with JPA Entity Objects

Explains the entity object lifecycle and the persistence context.... The life cycle of entity objects consists of four states: New, Managed, Removed and Detached. When an entity object is initially created its state is New .  In this state the object is not yet associated with an ...

 
issue

UPDATE query cannot set a new field after schema change

I've added a new property/field to one of my objects and want to set the value of this (boolean) property to false for all existing entities in the DB. I tried to execute an update statement with the Explorer tool. The statement ends and tells me that 1000 entities have been updated. I then save the changes to the DB via file->save. But when I execute a select on the DB I see that the field is still "null" for all instances. How do I initialize the field? ... I've added a new property/field to one of my objects and want to set the value of this ... a style in the toolbar and then insert the text in the new created block. Avoid overflow of published source code ...

 
forum_thread

Extending model by "common entity"

Hi, I have a question about extending working model with one, common entity, that all other entities will inherit from. For example I have 2 different entities in database with some data:... I have some data in database, after compiling and running new version of application, I got some errors: ... must repair a database file that was already used with the new schema - open it once in embedded mode from your application (not using the ... a style in the toolbar and then insert the text in the new created block. Avoid overflow of published source code ...

 
issue

New entity objects are duplicated on merge cascading

When merge is cascaded to a new entity object that has not been persisted yet - it becomes persisted twice. This was demonstrated by a Java EE application in this forum thread but may be reproduced also in a simple console test case: ... When merge is cascaded to a new entity object that has not been persisted yet - it becomes persisted twice ... ( ) ; em. persist ( new Book ( ) ) ; em. getTransaction ( ...

 
forum_thread

Attempt to begin a new transaction when a transaction is active

The code I have a RecordDao stateless java bean :  ... com.objectdb.o._PersistenceException: Attempt to begin a new transaction when a transaction is active root cause com.objectdb.o._PersistenceException: Attempt to begin a new transaction when a transaction is active root cause ...

 
forum_thread

ClassCastException on SELECT NEW ... after UPDATE over Java RMI

Hi, we are using ObjectDB 2.5.4_04 on Linux. Our application, which uses ObjectDb as a DB, exposes a Java RMI interface which allows remote RMI clients to run JPQL queries on the DB. The application internally runs SELECT NEW ... queries. For example: ... on the DB. The application internally runs SELECT NEW ... queries. For example: SELECT NEW com . arunta . base . db . FileNameDTO ( r . id , r . ...

 
issue

objectdb-2.6.9_06: Extended Persistence Context fails: 'Attempt to begin a new transaction when a transaction is active'

objectdb-2.6.9_01 NetBeans8.1+Glassfish4.1.1 Mac OS X Possibly related: How to Use a SF with extended Persistence Context? Test mini web app at: https://www.webel.com.au/downloads/objectdb/GreensoftObjectdbTestWebMini3683.2016-09-29.tgz ... extended Persistence Context? [EDIT: 2006-09-29 New improved version of test mini web app with test mode switches ... com.objectdb.o._PersistenceException: Attempt to begin a new transaction when a transaction is active at ... try { Project p = new Project ( owner, name ) ; persistElement ...