What is evict in hibernate?



What is evict in hibernate?..

Answer / Shiwali Gupta

'Evict' method removes an entity or collection from the first-level cache (Session cache) in Hibernate. It also marks the removed entity as detached, meaning it no longer participates in any active transactions.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Hibernate Interview Questions

What is hibernate dtd?

1 Answers  


Which element of hbm.xml is used to map a java.util.set property in hibernate?

1 Answers  


What are transactions in hibernate?

1 Answers  


Mention some of the advantages of using orm over jdbc.

1 Answers  


What is difference between opensession and getcurrentsession?

1 Answers  


What is foreign key in hibernate?

1 Answers  


What are the best practices to follow with hibernate framework?

1 Answers  


Is hibernate a middleware?

1 Answers  


What is meant by unidirectional and bidirectional?

1 Answers  


What is the purpose of hql in communication between hibernate and rdbms?

1 Answers  


Is hibernate obsolete?

1 Answers  


What are managed associations and hibernate associations?

1 Answers  


Categories