Home » Search

About detach

91-100 of 153Refresh
Forum
3

Optimistic locking: prevent version increment on entity collection attribute

is detached between the calls, check this issue and the no-detach solution. > I have tried to clear ... . Actually clear detaches managed objects and could make things harder in this case. > I have tried ... could be detached when I try to access the collection with the same EntityManager in the same transaction
Forum
3

JDOHelper.isDetached failure ?

); TestClass detached = pm.detachCopy(first); System.out.println(JDOHelper.isDetached(detached)); pmf.close(); } With this as the persistent class: @PersistenceCapable(detachable="true") public class TestClass implements Serializable { @PrimaryKey private long
Forum
3

Possible cause for "Enhancement of type ... is old and cannot be used"

'objectdb.temp.no-detach'. It was completely reproducible, and only happened with recent versions of ObjectDB (at least older than objectdb-2.6.3_04), and only when I had 'objectdb.temp.no-detach' true. When I had 'objectdb.temp.no-detach' false, I got the same error that I reported at this new issue
Result
2

ObjectDB version 2.4.0

on detachment to null (rather thanempty collections). Fixed a critical bug in handling a very large number ... checks in NO DETACH mode. Fixed a bug in online backup of databases larger than 2GB. Fixed a bug in ... implementing fake entity detachment (feature request #326). Fixed a bug in compilation of path
Forum
2

Extra uninitialised entities spawned on merge()

.getId();         root = em.find(Element.class, id); //now detached, since outside transaction ... as a detached entity, then create an Example 'e' (with 'root' as owner), persist it, then add it as ... 'root', persist it, load 'root' again with find() outside a transaction as a detached entity
Result
2

ObjectDB version 2.6.4

Version 2.6.4 Added memory only database mode. Added an option to cascade detachment to embedded ... resources. Improved memory management in multi flush transactions. Extended detachment of embedded objects ... detachment of embedded objects to collections. Fixed database page objects reuse to release to be cleared
Forum
2

Accessing objects to make them available after EntityManager close?!

objects? Many thanks Closing the EntityManager changes the state of the managed object to detached, and in detached objects only fields that have already been loaded when the EntityManager ... the fetch policy as EAGER or run queries with JOIN FETCH. Alternatively you may consider the non standard "objectdb.temp.no-detach" extension. mmmndt2015
Forum
2

Cascading makeTransient

adds an option to treat embedded objects on detachment (eventually it may be better ... before using ObjectDB:     System.setProperty("objectdb.temp.detach-embeddable", "true"); Then embedded objects are expected to be disconnected when owner entity objects are detached (made transient
Forum
2

List of Enum Values in an entity

this tutorial on detached Guest instances, and in detached objects only fields that have been loaded before detachment (e.g. defined as eager rather than lazy, or accessed) are available. One way to solve
Forum
2

Puzzler: Not getting cascades on read from Spring context

Fetching doesn't work by default for detached objects. Please read see this issue and as a workaround you may try setting objectdb.temp.no-detach. Would it make sense to call entityManager.merge(o ... , if possible, to arrange fetching of the relevant data before detachment. dhosek