ObjectDB Database Search
101-150 of 167 resultsRefreshing a dirty object causes permanent JDOOptimisticVerificationException;call, if the retrieved entity is dirty, call EntityManager# detach on it and then call pm.getObjectById   ... the entity to become impossible to commit. Option 2 with EntityManager# detach sounds robust ... . detach that would do the same; PM.detachCopy doesn't work. I found that ObjectDB's implementation | |
evictAll() behavior if they are implementing interfaces PersistenceCapable and Detachable after postprocesing and they do not. I ... PersistenceCapable and Detachable as Isaid earlier Tomasz Tomasz Wozniak The ObjectDB 2 Enhancer doesn't use | |
migration path from JPA / Hibernate objects from Hibernate, detaches them and then persists them using ObjectDB. A tool ... answers! retrieves entity objects from Hibernate, detaches them and then persists them using ObjectDB | |
Different behavior with persist() and queried instances?: After the commit and persist calls I do close the entity manager so my object gets detached . Between ... the odb specific fields (it is an objectdb.java.util.ArrayList). However, after detaching | |
problem with lazy loading - unittest project attached that EntityManager is closed and the result object becomes detached . Since the relationship between Foo And Bar is lazy - it is unavailable in a detached Foo instance and the collection looks empty. support Support | |
Items in list are doubled, when the entity class is not enhanced (which has never been detached ). According to JPA - the merge operation is ignored for Customer - but cascaded to Item ... check, so merge is called only on detached entities. If objectdb follows jpa, maybe we should ask jpa | |
Entity listener - event instead of object). You may create a copy of that object (maybe by JPA's detach + merge or by JDO's detachCopy ). Then you may be able to compare on @PostUpdate the entity object after the update with the cloned detached entity object before the update. support Support | |
Possible issue with Spring JPA and Embedded Paul. pedwards Paul Edwards The difference between the two tests is that Spring JPA returns detached ... after detach . Your Spring JPA test passes if you set eager fetch for that collection:   | |
Selective merge/cascade of detatched entity is an unusual one, in that it keeps all objects in memory at all times, in a Detached state (I realise ... to happen would be for there to be some way to re-attach the detached salesman with some form of 'I | |
Updating existing persistence entries is selected). If a detached object is modified, it has to be merged (maybe merge is your missing method ... the beans, and then you do not have detached objects and merge is not required. This is how ObjectDB | |
"Attempt to lock a non entity object" error and detach all managed entity objects: ... Rolling back a transaction - either by invocation of rollback or ... ; AlphaOne Ron Brennan It is correct. All the entity objects are detached on rollback | |
Error during cascaded merge.get(0); em. detach (unit); unit.getChannelConfigurationSets ... in our webapp. A unit entity gets detached , the user edits it, its merged | |
Is it possible to commit only specific elements?, retrieving only the needed ones, creating new ones (which I want to commit), detaching the ones I've ... the activity to multiple threads. Another option is to detach specific objects from the persistence | |
Failed to write the value of field using reflection (error 363) on LAZY fetch that also suggests a new setting ("objectdb.temp.no- detach ") that may be useful for you. Regarding setting Spring Framework transactions in a way that JPA managed entities will not be detached on exiting | |
Dirty checking entities are automatically set to ' Detached ' state. However, unless the relevant parts of the object graph have already been retrieved, they won't be retrieved for the detached object. I'm not | |
Can't get arraylist/vector type attributes the EntityManager managed entity objects become detached , and content that has not been retrieved ... ). See also "objectdb.temp.no- detach " as a possible quick workaround. support Support Loading it eagerly worked Unknown unknown | |
Does ObjectDB create one instance of each entity class on (web app) load ? with a pre- detach loader that "visits" any data and relationships needed for particular views, rather than relying on one-size-fits-all EAGER. This pre- detach loader approach is even more flexible | |
Unable to update a OneToMany Set the EntityManager after every operation your Company instance becomes detached . A detached entity | |
EM.find() is suddenly slower = {CascadeType.REFRESH, CascadeType. DETACH }) private ModelElementImpl element; @OneToMany (fetch = FetchType.EAGER, cascade = {CascadeType.REFRESH, CascadeType. DETACH }) private HashMap mappingMap = new | |
ManyToMany Set is null={CascadeType. DETACH ,CascadeType. MERGE ,CascadeType. REFRESH }) @JoinTable(name="PERSON_CONTRACT ... = FetchType. EAGER , cascade={CascadeType. DETACH ,CascadeType. MERGE ,CascadeType. REFRESH }, mappedBy | |
@Entity saved in Tomcat session - problem and starting Tomcat entity objects in the session will be detached . Thank you for this report. support Support | |
ObjectDB version 2.1 has been released viewing TreeSet and TreeMap in the Explorer. Fixed detachment of entities by replacing proxy objects | |
Fetching Collections Puzzle method) it is filled automatically. Unless the Node object is detached , for example if the EntityManager | |
Import data from MySQL data from MySQL using JPA as entity objects, detach the retrieved entity objects and then persist | |
OptimisticLockException are automatically detached at the end transaction. Yes, if A holds an older version of that object | |
Removing an entity throws exception is the entity detached (why?). When I merge it, I can remove it without problems... The Customer class | |
Problem with @Basic(fetch = FetchType.LAZY). detach (sample); //just to be sure em.close(); emf.close(); System.out.println(sample.title | |
Mapped (Inverse) LAZY @OneToMany vs. Unmapped LAZY @OneToMany this difference by setting unloaded collections to null on detachment , for both mapped an unmapped collections. support Support | |
Significant I/O costs during batch update or insert data. Our application has some complex entities. We do batch update(merge detached entity) every 2 minutes. We find the period significant IO costs these days, and disappeared when turn off the batch updating. 1.ObjectDB is in embedded mode. 2.ObjectDB version is 2.3.7 3.Database file size is nearly | |
Attempt to refresh a non managed entity object (error 635) a detached entity object (e.g. after clear ). It doesn't seem to be related to the IDE that you use. support | |
Possible issue with LAZY Loading to performance differences) when the EntityManager is closed or results are detached . In this case, LAZY | |
NullPointerException while setting a new property value to be shared by threads, except maybe after detachment . support Support | |
How do I achieve a Deep Fetch using JOIN FETCH? with the whole C object, with all its parts, as a detached object. I know that I can express one level | |
Java 8 Enhancer Problem fetch, detach , change and merge an object I get the following exception: Caused by: com.objectdb.o | |
Removing entity class You can retrieve all your objects, detach them, and then persist them to a new database | |
Merge Issue: Attempt to reuse an existing primary key value to use merge only to attach detached objects, and without mixing already managed objects. support | |
Post-compilation enhancement vs Automatic Run-time enhancement of is now provided under forum posting: Pre- detach loading: retrieval by navigation not working in | |
InternalException Szurgot The exception is thrown during detachment of an object (at the end of commit). Apparently the specific detached object that causes the exception has no id (primary key) fields. ObjectDB | |
ObjectDB-2.6.9: Failed to commit transaction: Failed to set numeric value of field property Element.id using reflection setting objectdb.temp.no- detach ! Info: Builder []: Created: com.greensoft.objectdb.test.mini.entity ... .GS4223.tgz if I set experimental 'objectdb.temp.no- detach ' true on startup, I get INSTEAD (or maybe | |
Best practise loading big data to commit and open a new transaction). But this does not sound like a nice solution. We tried to detach ... two of the entity classes so I had a mix of attached and detached classes. Sorry for that. So I | |
ObjectDB 2.0.4 Added support for JTA and Java EE Containers ( issue #8 ). Fixed a bug in indexing entity objects. Fixed a bug in fixing broken references in ObjectDB Doctor. Fixed a bug in modifying enhanced detached embedded objects. Fixed a spring transformer (LoadTimeWeaver) problem. Fixed a class | |
ObjectDB 2.0.5 Fixed Java Agent / Java EE / Spring enhancement bug. Fixed a bug in merging detached entity objects. Fixed unexpected NullPointerException in client server mode. Fixed an exception in AVG query on non numeric values ( issue #107 ). Fixed a bug in handling JOIN queries with primary key fields. | |
Unexpected exception (Error 990) - Merge with no Transaction I am frequently having an error when merging a detached object outside of a transaction. (Is this allowed? I am not trying to modify the object, just read data from it.) Here is a test case: package com.experiments; import javax.persistence.*; import java.util.HashMap; public class ErrorTest | |
ObjectDB 2.1.0 optimization). Fixed a bug in viewing TreeSet and TreeMap in the Explorer. Fixed detachment of entities by | |
ObjectDB 2.3.2 a NullPointerException on using a collection in a detached object ( issue #527 ). Fixed a bug of changing id type | |
ObjectDB 2.3.3 of more than one class path root ( issue #554 ). Fixed a NullPointerException on detachment of some objects. Fixed Linux "Name or service not known" error on server stop. | |
ObjectDB 2.3.7 Fixed a critical issue that may cause database corruption ( issue #630 ). Initial attempt to enable navigation through lazy loading from detached objects ( feature request #326 ). Improved toString of criteria queries to use aliases ( issue #12 7). Fixed automatic variable naming in criteria | |
ObjectDB 2.4.1 Fixed a bug of duplicating new objects during merge . Fixed a username/password issue in using EntityManagerFactory 's getMetamodel . Fixed a bug in detachment of hollow objects on close ( issue #799 ). Fixed a Doctor exception ( issue #796 ). Fixed a Doctor bug in checking byte[] arrays | |
Read only hint for query Second thing after @FetchGroup I've found is read-only hint for EM. You can specify this hint to EM when executing query meaning that returned data will never be edited or persisted. My understanding of this is that each entity returned from query is in detached state as default state. query | |
ObjectDB 2.5.0 Added support of nested paths in JOIN FETCH. Added support of persisting collections and maps of user defined types. Added support of Google (Guava) collections. Added support of inheritance of ID fields. Added support of disabling detachment on rollback in JPA. Added support of using entity |