Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Hibernate - DB Cascade

 
Wahaj Dhalani
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Does Hibernate support DB Cascade ?
Pls. share any info. you may have aroudn this.
Thanks.
 
Mark Spritzler
ranger
Sheriff
Posts: 17278
6
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
DB Cascade? Do you mean Cascade Deletes? Yes, it can do cascade deletes. By default it does not, but you just add a tag in the XML that sets it to true.

Mark
 
Peer Reynders
Bartender
Posts: 2968
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
6.2. Collection mappings
"map" element attribute "cascade":

This means that you can make the application responsible for the cascade rather than specifying it on the DB table level (e.g. ON DELETE CASCADE) within the database itself.
[ April 17, 2006: Message edited by: Peer Reynders ]
 
Wahaj Dhalani
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for the replies guys.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic