What does evict do in hibernate?



What does evict do in hibernate?..

Answer / Rubina Parveen

The evict method in Hibernate removes an entity from the persistent context (Session or SecondLevelCache), which makes it transient and unsynchronized with the database.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Hibernate Interview Questions

What is named query?

1 Answers  


What is the difference between eclipselink and hibernate?

1 Answers  


Tell about the core interfaces of the hibernate framework?

1 Answers  


What is query level cache in hibernate?

1 Answers  


What is discriminator in hibernate?

1 Answers  


How can the primary key be created by using hibernate?

1 Answers  


What are the orm frameworks?

1 Answers  


What is the difference between update and merge?

1 Answers  


What does mappedby mean in hibernate?

1 Answers  


What is the limitation of hibernate?

1 Answers  


Does hibernate flush commit?

1 Answers  


What are the identified limitation of hibernate?

1 Answers  


Categories