I am using an application where i can see different DAO class and each one is calling getCurrentSession of sessionFactory while it had never call getOpenSession.How hibernate behave when don’t call openSession() and call direct getCurrentSession.
Most likely that there’s an AOP component that creates the
Session for you. If no component will create it, then you’d get a
null when calling