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.
How to disable Transparent Update.
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 - Fast Object Database for Java (JPA/JDO)
Ok Thank You!