saplingPro saplingPro - 1 year ago 71
Java Question

What is cascading in Hibernate?

What is cascading in Hibernate ? There is a

attribute I have seen in the
tag. What is it meant for?

Like what does
cascade = all
mean? There are other attributes I read like


Answer Source

Cascading is about deletion of one object from the database causing deletion of other (dependent) objects .... though of course it is typically database rows that are actually getting deleted.

Cascading can also apply to saves / updates as well.