what is difference between session.clear and evict methods in hibernate.Both are detatched objects that is instance removed from session.when should i use session.clear and session.evict in hibernate.
what is difference between session.clear and evict methods in hibernate.Both are detatched objects that
Share
evict() evicts a single object from the session. clear() evicts all the objects in the session. Calling clear() is like calling evict() on every object associated with the session.