About detached

manual

Retrieving JPA Entity Objects

Explains how to use JPA to retrieve entity objects from the database.... The fetch policy also affects objects that become detached (e.g. when the EntityManager is closed). Transparent activation is not supported for detached objects. Therefore, only content that has already been fetched from ...

 
release

2.3.0

... bug. Fixed a bug in merging detached entity objects. Fixed unexpected  ... Fixed a bug in modifying enhanced  detached embedded objects . Fixed a spring transformer ...

 
release

2.3.1

... bug. Fixed a bug in merging detached entity objects. Fixed unexpected  ... Fixed a bug in modifying enhanced  detached embedded objects . Fixed a spring transformer ...

 
release

2.2.9

... bug. Fixed a bug in merging detached entity objects. Fixed unexpected  ... Fixed a bug in modifying enhanced  detached embedded objects . Fixed a spring transformer ...

 
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. ... Guest 's toString is invoked in this tutorial on detached Guest instances, and in detached objects only fields that have been loaded before detachment (e.g. ...

 
release

2.2.8

... bug. Fixed a bug in merging detached entity objects. Fixed unexpected  ... Fixed a bug in modifying enhanced  detached embedded objects . Fixed a spring transformer ...

 
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: ... changes the state of the managed object to detached , and in detached objects only fields that have already been loaded when the  ...

 
api-jdo

setCopyOnAttach(flag)

Sets the default copyOnAttach setting for all PersistenceManager instances obtained from this factory.(Method of javax.jdo.PersistenceManagerFactory)

 
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. ... a transaction (when SAVE is selected). If a detached object is modified, it has to be merged (maybe merge is your ... entity objects as the beans, and then you do not have detached objects and merge is not required. This is how ObjectDB Explorer ...