Hi,
javax.persistence.EntityExistsException: a different object with the same identifier value was already associated with the session: [com.xxx.ips.ow.domain.Owtitle#com.xxx.ips.ow.domain.Owtitle@cb0cda57]
Configuration in embeddable class:-
private long owpermid;
@GenericGenerator(name="generator", strategy = "increment")
@GeneratedValue(generator="generator")
//@Generated(value = "increment")
private long owtitleseq;
Here when i insert the records in the respective table the Sequence is stored as zero and when i insert the second record it is throwing an error saying
javax.persistence.EntityExistsException: a different object with the same identifier value was already associated with the session:
I am not sure where I am going wronh with this? Please clarify.
Thanks.