The Artima Developer Community
Sponsored Link

Java Buzz Forum
Hibernate 2.0.2 cascade="all-delete-orphan"

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
Mathias Bogaert

Posts: 618
Nickname: pathos
Registered: Aug, 2003

Mathias Bogaert is a senior software architect at Intrasoft mainly doing projects for the EC.
Hibernate 2.0.2 cascade="all-delete-orphan" Posted: Aug 5, 2003 6:11 PM
Reply to this message Reply

This post originated from an RSS feed registered with Java Buzz by Mathias Bogaert.
Original Post: Hibernate 2.0.2 cascade="all-delete-orphan"
Feed Title: Scuttlebutt
Feed URL: http://feeds.feedburner.com/AtlassianDeveloperBlog
Feed Description: tech gossip by mathias
Latest Java Buzz Posts
Latest Java Buzz Posts by Mathias Bogaert
Latest Posts From Scuttlebutt

Advertisement
Finally Hibernate (version 2.0.2) supports deleting orphans by removing them from a collection. For example, if you have cdbox (1) - (N) cd’s relationship, when you call getCdBox().remove(britneySpearsCd), it will remove it from the database. When calling getCdBox().clear() it will delete all cd’s from the database. Finally some silence ;-). Also, I added support for this to XDoclet. It’s in CVS....

Read: Hibernate 2.0.2 cascade="all-delete-orphan"

Topic: HowTo: Upgrade your app to JSP 2.0 Previous Topic   Next Topic Topic: Fun with Tomcat 5.0.4

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use