About detached

21-30 of 158Refresh
Forum
20

Merge on detached entities

Hello, it is possible to merge detached entities? There are some attached entities which load from the database. The transaction is finished and the entities become detached. In a new transaction the fields of the detached entities will be changed and a merge by em.merge(entity) will be saved
Forum
19

Pre-detach loading: retrieval by navigation not working in if statement

: objectdb.temp.no-detach NOT USED This problems only seems to occur in my large web application. I know ... and why. I am using pre-detach loading after em.find(id), because just relying on JPA-annotations ... these during the pre-detach loading should (and usually does) load everything needed to compute a transient expert
Forum
19

Detaching objects after JOIN FETCH

Hi, I have a question about detaching objects after issuing query with JOIN FETCH. Let's say I ... .aClasses After closing entity manager, B classes became detached but without A classes and because EM is closed, B.aClasses is always null. I thought, that after join fetch and CascadeType.DETACH list
Forum
18

Changes in detach behaviour?

out that all fields of retrieved objects are on their default value till i first call a getter or detach ... and the em. With 2.3.5_04 I get an empty detached user object back. Only the id is correct. Shouldn't the detach and field population happen implicitly during em.close()? The last builds include
Forum
18

The exception "Attempt to remove a detached entity object" have no information about the entity

Hello, the exception "Attempt to remove a detached entity object" have no information about the detached entity. It is very hard, especially if the involved entities uses cascading, to find the removed call for the detached entity.   It would be very helpful if you can add a few information
Forum
17

Attempt to remove a detached entity object (error 613)

Hello, that's a strange error for me ... I have a detached object in my Java code and i just wanted to merge it ... Unfortunatly, i get this error : Failed to commit transaction: Attempt to remove a detached entity object (error 613)      at com.objectdb.jpa.EMImpl.commit(EMImpl.java:290) We see in
Forum
17

NPE after an @embedded obj is updated for a detached entity

I have an entity that looks like this: class User {     @embedded private Profile profile;     ... } After running something like this:     User user = entityManager.createQuery("select......     entityManager.detach(user);     user.getProfile().setDescription("Something... I
Issue
17

Query in nested transaction returns detached entity if lazy-loaded

Hello, we've encountered an issue with ObjectDB. The attached code is a minimal example of the relevant work flow and fails at the assert in line 58: assertTrue(secondQueryResult.get(1).strValue != null); The entity is detached and data is not loaded lazily from the database. We've also found
JDO Doc
13

javax.jdo.FetchPlan

, and the various setGroups calls. Value: default. Since: JDO 2.0 int DETACH_LOAD_FIELDS For use ... plan should be loaded prior to detachment. Since: JDO 2.0 int DETACH_UNLOAD_FIELDS For use ... should be unloaded prior to detachment. Since: JDO 2.0 int FETCH_SIZE_GREEDY For use with setFetchSize
JDO Doc
13

makePersistent(pc)

persistent in this PersistenceManager. This method makes transient instances persistent and applies detached ... instances, the create life cycle listener is called. For detached instances, it locates or instantiates a persistent instance with the same JDO identity as the detached instance, and merges the persistent