Hibernate- Cascade Attribute
Cascade attribute is mandatory, whenever we apply relationship between objects, cascade attribute transfers operations done on one object onto its related child objects. default value of cascade =”none” means no operations will be transfers to the child class
If we write cascade = -all” then changes like insert, delete, update at parent object will be effected to child object.
Cascade having following values
- none (default)
- save,
- update,
- save-update,
- delete,
- all,
- all-delete-orphan
PREVIOUSHibernate Relationships
NEXTHibernate Cache