Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[eclipselink-users] synchronization of new object question

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?

During synchronization a new object was found through a relationship that was not marked cascade PERSIST: ****.model.ImageInfo

Back to the top