This week's book giveaway is in the Open Source Projects forum. We're giving away four copies of Eclipse Collections Categorically: Level up your programming game and have Donald Raab on-line! See this thread for details.
"Objects can be evicted from the cache by calling the Session.evict() method . "
I am having a Query with respect to above statement .
My understanding with respect to above statement is not applicabe if one uses Second Level Cache such as EHCache .
AS session is only associated with First Level Cache
Session.evict() evicts stuff from the Session, and the Session is the first level cache. It doesn't evict stuff from the second level cache, hence all the evict methods in the SessionFactory class. See the JavaDocs.