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 ...

 
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.PersistenceException

Thrown by the persistence provider when a problem occurs.(Exception of JPA)

 
forum_thread

Cascading persistence through an inverse field

Hi! I was playing with cascading persistence with @ManyToMany and inverse @ManyToMany fields, and I noticed that I can only get cascading persistence in one direction. If the "owner" of the relationship is persistent, then objects that are added to the relationship are automatically made persistent. However, I can not get this to work the other way around. I would also like the relationship owner to be persisted if a persisted object is added on the owner side. I have included a minimal example: ... ) private Set<Point> points = new HashSet<> ( ) ;   public void ... Scenario 1: PointCollection col = new PointCollection ( ) ; em. persist ( col ) ...

 
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)

 
api-jpa

javax.persistence.RollbackException

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

 
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 = ...

 
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 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 ...