I am getting NonUniqueObjectException when i persist an object using JPA.
The object where i make persisent, have other objects and in some cases the objects have the same id.
Make a merge in object where is already saved in DB is a possibility but i only can make persist at one object (this object have all information)
I can put any annotation on my id to make a merge when this id is already saved in MySQL database?