What is cascade type?



What is cascade type?..

Answer / Dileep Yadav

Cascade type determines what happens to associated entities when the parent entity is manipulated. For example, CASCADE_PERSIST means that a new child entity will be created along with the parent if the parent is persisted, and CASCADE_REMOVE means that the child entity will also be removed when the parent is deleted.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Hibernate Interview Questions

How does hibernate useful in mapping object and its relations?

1 Answers  


What is persistence context in hibernate?

1 Answers  


What is hibernate session factory?

1 Answers  


What is use of hibernate session merge() call?

1 Answers  


What happens if hibernate session is not closed?

1 Answers  


Mention two components of hibernate configuration object.

1 Answers  


What is a pojo class in hibernate?

1 Answers  


Why do we need hibernate framework?

1 Answers  


What are the fetching strategies supported by hibernate?

1 Answers  


Why do we use cascade in hibernate?

1 Answers  


How to configure second level cache in hibernate?

1 Answers  


Is orm slow?

1 Answers  


Categories