We have an application that uses Hibernate\'s 2nd level caching to avoid database hits.
I was wondering if there is some easy way to invalidate the Java application
Both hibernate and JPA now provide direct access to the underlying 2nd level cache:
sessionFactory.getCache().evict(..); entityManager.getCache().evict(..)