To delete in Hibernate using 2 Different instance of same class
I have a Class name Project and another class Project_PK as per the standard Spring MVC structure.
Project_PK has only Primary which is defined in Project.java and both referring to same Table
When i was saving into the database , I was getting error of non unique object. Same error "Having Non Unique Object Exception" 2 instance of a same class.
Which i resolved it by using merge() rather than save ().
This worked for save but while deleting i am facing same error, can some one help me regarding this ???
Thanks in Advance.
Re: To delete in Hibernate using 2 Different instance of same class
Without some code it's going to be hard to say.
Include the full exception text and stack trace.