Delete-orphan with Cascade

Let’s perform Delete Orphan operation with and without cascade to understand it better delete-orphan with Cascade Orphan record is a record in relation table which doesn’t have any association with its relationship owner. Example:Applicant has a list of address, suppose we delete this address list association with Applicant then all the address records becomes Orphan […]

Share this article on

Cascade save-update Project in Hibernate

Let us see one end to end project for Cascade save-update Step 1 Create hibernate project Please refer Hibernate setup in eclipse article on how to do it. Project structure Step 2 Update pom.xml with Hibernate and Mysql dependencies <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"   xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">   <modelVersion>4.0.0</modelVersion>     <groupId>HibernateCascade</groupId>   <artifactId>HibernateCascade</artifactId>   <version>0.0.1-SNAPSHOT</version>   […]

Share this article on
< Previous Next >