About new

tutorial

Step 2: Create a Project and a Report

Explains how to create an Eclipse report project for ObjectDB/JPA BIRT reports.... a BIRT Report project in Eclipse: Open the [New Project] dialog box, e.g. by using File > New > Project... Select Business Intelligence and ...

 
forum_thread

Recursive calls with @PreUpdate annotation and Glassfish OutOfMemoryError

Hi,    I've had an issue that started today and it's got me stumped. I've got a subclass User, which extends a BaseEntity. The BaseEntity has a @PreUpdate as per: ... **********" ) ; lastUpdatedDate = new Date ( ) ; } I've managed to ... mode) Test case, uploaded new - replaced old file edit ...

 
tutorial

Step 4: Add a Servlet Class

Explains how to add a servlet that manages persistence using JPA and ObjectDB to an Eclipse Web Application.... (in the [Package Explorer] window), selecting  New > Other... > Web > Servlet and clicking  Next . ... class name. Click Finish to create the new servlet class. Now replace the content of the new ...

 
api-jpa

javax.persistence.EntityExistsException

Thrown by the persistence provider when EntityManager.persist(Object) is called and the entity already exists.(Exception of JPA)

 
api-jpa

javax.persistence.RollbackException

Thrown by the persistence provider when EntityTransaction.commit() fails.(Exception of JPA)

 
doc

java.lang.Exception

The class Exception and its subclasses are a form of Throwable that indicates conditions that a reasonable application might want to catch.(Exception of java.langException Exception)

 
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? ... private Map<String, ChildEntity> children = new HashMap<String, ChildEntity> ( ) ;   ... ; if ( delete ) { new File ( dbFileName ) . delete ( ) ; ...

 
tutorial

Step 4: Add a Servlet Class

Explains how to define an EJB session bean in an Eclipse Java EE 6 web application.... node (in the [Package Explorer] window), selecting  New > Other... > Web > Servlet and clicking  Next . The Java ... sensitive class name. Click Finish to create the new servlet class. Now replace the content of the new source file ...

 
forum_thread

@Unique member combination not working

Why does the below code not enforce unique restrictions?   Person.java ... ] args ) { Person p1 = new Person ( "John" , "Doe" ) ; Person p2 = new Person ( "John" , "Doe" ) ; Person p3 = ...

 
issue

[ObjectDB 2.2.6_02] Unexpected exception (Error 990) at com.objectdb.o.OBC.aJ(OBC.java:961)

I was experiencing an exception so I did a test to reproduce it.   here it is. ... this error on http://www.objectdb.com/database/issue/new com.objectdb.o.InternalException: java.lang.NullPointerException: ... // initialise ReproduceTest test = new ReproduceTest ( ) ; TimePeriod tp = new ...