What is the importance of lifecycle and validatable interface in hibernate?
Answer / Namit
The Lifecycle interface in Hibernate helps manage the life cycle events of an entity object, such as initialization, persistence, and deletion. The Validator interface can be used to enforce validation rules on entities before they are saved or updated in the database.
| Is This Answer Correct ? | 0 Yes | 0 No |
What is sessionfactory?
What are different types of caches available in hibernate?
What is @manytoone?
Which annotation is used to auto generate primary key?
What are the extension interfaces that are there in hibernate?
Is sessionfactory thread safe in hibernate?
What is meant by unidirectional and bidirectional?
What is difference between save and merge in hibernate?
How does sessionfactory work in hibernate?
Which annotation is used to declare a class as a hibernate bean ?
How to insert data into database using spring mvc and hibernate?
What are the major benefits of hibernate?