Internal Website Search
101-150 of 166 resultsproblem 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 | |
ManyToMany Set is null={CascadeType. DETACH ,CascadeType. MERGE ,CascadeType. REFRESH }) @JoinTable(name="PERSON_CONTRACT ... = FetchType. EAGER , cascade={CascadeType. DETACH ,CascadeType. MERGE ,CascadeType. REFRESH }, mappedBy | |
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 | |
"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 | |
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 | |
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 | |
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 | |
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 | |
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:   | |
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 | |
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 | |
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 | |
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 | |
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 | |
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 | |
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 | |
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 | |
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 | |
Java 8 Enhancer Problem fetch, detach , change and merge an object I get the following exception: Caused by: com.objectdb.o | |
Mismatch client-server protocol prefix; em. detach (result); return result;   | |
Import data from MySQL data from MySQL using JPA as entity objects, detach the retrieved entity objects and then persist | |
Missing (null) elements in eager loaded references with detached objects (e.g. after closing the EntityManager ) then anything that has not | |
Removing entity class You can retrieve all your objects, detach them, and then persist them to a new database | |
How to disable Transparent Update. for your reference. Manoj Manoj Kumar Maharana You cannot disable transparent update. You can detach | |
ObjectDB version 2.1 has been released viewing TreeSet and TreeMap in the Explorer. Fixed detachment of entities by replacing proxy objects | |
Possible issue with LAZY Loading to performance differences) when the EntityManager is closed or results are detached . In this case, LAZY | |
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 | |
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 | |
OptimisticLockException are automatically detached at the end transaction. Yes, if A holds an older version of that object | |
Fetching Collections Puzzle method) it is filled automatically. Unless the Node object is detached , for example if the EntityManager | |
Query only works correctly when debug printing results are detached . See also this forum threads: https://www.objectdb.com/issue/326 https://www.objectdb | |
Fetch Set from DB only works on debug mode . Read about detached entities in the manual and also see the discussion on this issue   | |
Problem with @Basic(fetch = FetchType.LAZY). detach (sample); //just to be sure em.close(); emf.close(); System.out.println(sample.title | |
@Entity saved in Tomcat session - problem and starting Tomcat entity objects in the session will be detached . Thank you for this report. support Support | |
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 | |
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 | |
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 | |
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.8.9_07 Improved the error message on exception during commit, reported in issue #2882 . Improved automatic schema evolution of enum fields. Fixed A NullPointException when using EntityManagerFactory with different class loaders. Fixed a missing call to @PostUpdate when object change is detached by  | |
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. | |
Use temporary files to enable very large transactions the first level cache (by flush() and detach ()). But an array of bytes, any ObjectDB memory | |
ObjectDB 2.6.5 change . Fixed a bug in indexing java.sql.Date fields during time / time zone change . Fixed a bug in detachment of embedded objects ( if enabled ). | |
ObjectDB 2.3.2 a NullPointerException on using a collection in a detached object ( issue #527 ). Fixed a bug of changing id type | |
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 | |
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 | |
Fetch a whole entity graph eager Hello, I have two question at you. Are you provided JPA 2.1 annotation @NamedEntityGraph in next version ObjectDB 3.0? And do you know an easy possibility to get an entirely eager entity graph with all depended entities which we can use as a detached full accessible entity graph outside | |
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 | |
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. |