About detach

manual

Retrieving JPA Entity Objects

Explains how to use JPA to retrieve entity objects from the database. The Java Persistence API (JPA) provides various ways to retrieve objects from the database. The retrieval of objects does not require an active transaction because it does not change the content of the database. The persistence context se ...

 
release

2.3.0

Release date: 2011-09-21 Download (5.32 MB) Binary:  objectdb-2.3.0.zip You should start by following a  tutorial or reading the manual ...

 
release

2.3.1

Release date: 2011-10-02 Download (5.48 MB) Binary:  objectdb-2.3.1.zip You should start by following a  tutorial or reading the manual ...

 
release

2.2.9

Release date: 2011-08-10 Download (5.15 MB) Binary:  objectdb-2.2.9.zip You should start by following a  tutorial or reading the manual ...

 
forum_thread

List of Enum Values in an entity

Hello, I'm new with ObjectDB and just tried out the example in the Eclipse/Glassfish tutorial (http://www.objectdb.com/tutorial/jpa/eclipse/ee). After testing was successful, I extended the Guest class with an ArrayList of Enums: private ArrayList<GuestFlag> flags; The flags are stored into the database without any problem. In the explorer I can see that it is stored as array of Strings. #1 2013-11-07 14:16 Hello, I'm new with ObjectDB and just tried out the example in the Eclipse/Glassfish tutorial ( http ...

 
release

2.2.8

Release date: 2011-07-03 Download (5.14 MB) Binary:  objectdb-2.2.8.zip You should start by following a  tutorial or reading the manual ...

 
forum_thread

Accessing objects to make them available after EntityManager close?!

Hi, I would like to get all the instances of an entity object. So I wrote a function which returns a list of these instances. My problem is if I print out these instances before closing the em and returning the list, it works as I expected; if not, the function returns only one field correctly, another field is always Null. The details is as follows: ... you may consider the non standard "objectdb.temp.no-detach" extension . ObjectDB Support ObjectDB - ...

 
forum_thread

Error during cascaded merge

Hello! I have a new problem with ObjectDB 2.5.5_02. This issue appeared after the upgrade from 2.5.5. I get the following exception: ... = result. get ( 0 ) ; em. detach ( unit ) ; unit. getChannelConfigurationSets ...

 
forum_thread

ObjectDB version 2.1 has been released

Version 2.1 has been released: #1 2011-02-25 06:25 ObjectDB 2.1 has been released and it includes important additions and fixes: Added Online Backu ...

 
forum_thread

Updating existing persistence entries

I have stored some instances of MyObject via em.persist(myObjectInstance); I can fetch them and bind them to a kind of property editor in my app (it simply calls the setters to reflect gui editing actions). When I try to persist a object later on, I get an error like com.objectdb.o.UserException: Attempt to reuse an existing primary key value which makes sense to me but I'm missing a em.update() method. #1 2012-12-07 19:29 I have stored some instances of MyObject via em.persist(myObjectInstance); I can fetch them and bind them ...