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
_______________________________________________
eclipselink-users mailing list
eclipselink-users@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/eclipselink-users