In a Spring JPA + Hibernate environment I need to enable Hibernate entity filters. So I should have access to Hibernate Session object, but I\'m using EntityManagerFactory a
here's one i use for apps that support is_delete on objects -
entityManager.unwrap(Session.class) .enableFilter("notDeleted") .setParameter("isDeleted", false);