This is expected behavior. The PersistenceContext has its own copy of of the reference to origin, which has modified values. You would need to evict the existing reference in the PersistenceContext before committing to get the results you are expecting. |