How to disable Transparent Update.

#1

How to disable Transparent Update. I have done 2 task in a single transaction. 1. Find a entity by a em.find(Class<t> cls,Object o) and change some fields.(not updating) 2. Persist a new entity. But i found the in 1st case the changed value was updated. I have attached the sample program for your reference.  

#2

You cannot disable transparent update.

You can detach the first object or load it using another EntityManager to separate it from the second object that you store in the database.

ObjectDB Support
#3

Ok Thank You!

Reply