I use RMI + Hibernate in a Java project, and I am having problems with NotUniqueException with the error "Various objects with the same identifier".
I have a few doubts:
I am pretty sure that I am not copying or creating new objects with the same ntifiers ideas. Is it possible that RMI creates a new object from another when I use it?
Which method does Hibernate use to know that two objects are the same? equally?
I know that Serializable is related to Hibernate, but I donβt know how?
How can I solve the "Differents objects" error using RMI at the same time?
Is this correct every time I use delete or save over merge object before?
Stack trace:
org.orm.PersistentException: org.hibernate.NonUniqueObjectException: a different object with the same identifier value was already associated with the session: [dcl.Administrador
Thanks in advance.
source share