Results 1 to 2 of 2
- 02-14-2013, 12:00 PM #1
Member
- Join Date
- Feb 2013
- Posts
- 1
- Rep Power
- 0
To delete in Hibernate using 2 Different instance of same class
Hi,
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.
- 02-14-2013, 12:10 PM #2
Moderator
- Join Date
- Apr 2009
- Posts
- 10,484
- Rep Power
- 16
Similar Threads
-
Passing instance of derived class as base class
By goatjugsoup in forum New To JavaReplies: 7Last Post: 08-01-2012, 05:15 AM -
Problem Delete Hibernate
By anouar2002 in forum HibernateReplies: 7Last Post: 05-25-2012, 09:44 AM -
using an instance of the super class in the constructor of a sub class
By marcosol in forum New To JavaReplies: 1Last Post: 05-08-2012, 09:40 PM -
Creating an instance variable in one class that connects to another instance variable
By SpicyElectricity in forum New To JavaReplies: 1Last Post: 04-21-2012, 06:03 PM -
How to Instance and reference a class by its name????
By lrocha in forum Advanced JavaReplies: 3Last Post: 12-08-2010, 10:28 PM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks