About detach

91-100 of 158Refresh
Issue
3

Best practise loading big data

). But this does not sound like a nice solution. We tried to detach the MyValue object before returning ... . Indeed, I accidentally touched two of the entity classes so I had a mix of attached and detached ... after closing the entitiy manager factory. Still all memory in use. Entities have detached trackers
Forum
3

@OneToMany(fetch = FetchType.LAZY) list is always null

is open. After closing the EntityManager your entity objects are detached and lazy relationships ... objectdb.temp.no-detach. Thank you! It works (as the next my problem does). When I turn on this option ... to the no-detach option then the same test case should work differently, depending if that option
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
2

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
2

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
Forum
2

Is there any restriction when using fetch=FetchType.LAZY ?

.detach(this);   Regards, -- eko     You can use FetchType.LAZY on any field (although it is only a hint in JPA and ObjectDB is allowed to ignore it and load data eagerly). On detach some unloaded ... been loaded yet, as detached objects cannot handle automatic loading on access. See this thread and the objectdb.temp.no-detach mode. eko
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