Thursday, 5 March 2015

What is orphan record in hibernate

an orphan record means it is a record in child table but it doesn’t have association with its parent in the application.
In an application, if a child record is removed from the collection and if we want to remove that child record immediately from the database, then we need to set the cascade =”all-delete-orphan”.

No comments:

Post a Comment