This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Object Relational Mapping and the fly likes special deleting (using joined-subclass in hibernate ) Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Databases » Object Relational Mapping
Bookmark "special deleting (using joined-subclass in hibernate )" Watch "special deleting (using joined-subclass in hibernate )" New topic
Author

special deleting (using joined-subclass in hibernate )

dmitry dvoinov
Greenhorn

Joined: Jun 02, 2006
Posts: 8
Hi 2 all!
I have such hibernate mapping:



if anyone knows how to delete records from TABLE2 without deleting corresponding records in TABLE1?
Edvins Reisons
Ranch Hand

Joined: Dec 11, 2006
Posts: 364


Unless Class1 is abstract, I see no serious obstacle to deletion from Table2 by raw SQL or by a separately mapped class; this appears easier than trying to change the type of an entity object from Class2 to Class1.
I hope that you have a reason for changing the type, but that's another question...
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: special deleting (using joined-subclass in hibernate )
 
Similar Threads
If somebody can translate this for me please?
Hibernate: Different Join in Save() and Get()
out of range error
polymormsim related demos
Hibernate generating queries with duplicate columns