[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[List Home]
|
[eclipselink-users] synchronization of new object question
|
- From: Leon Derks <leon.derks@xxxxxxxxxx>
- Date: Wed, 11 Jun 2008 14:16:56 +0200
- Delivered-to: eclipselink-users@eclipse.org
- User-agent: Thunderbird 2.0.0.14 (Windows/20080421)
I get the error message below when I run the following:
getEntityManager().createNamedQuery("findImageInfoByExample").setParameter("visualElementId",
visualElementId).getSingleResult();
My question is, why is the entitymanager synchronizing during this
query? I would expect to synchronize only during entityManager.persist()
or merge().
I don't want to persist the new , but want to check if the same is
already stored in the db.
Is it possible to disable the synchronisation?
Error:
During synchronization a new object was found through a relationship
that was not marked cascade PERSIST: ****.model.ImageInfo