java.lang.Object
com.atlassian.crowd.util.persistence.hibernate.StatelessDao
Direct Known Subclasses:
ClusterJobDAOHibernate, ClusterMessageDAOHibernate, HibernateDao

public abstract class StatelessDao extends Object
Minimal Hibernate DAO operating with stateless sessions.
  • Field Details

    • sessionFactory

      protected org.hibernate.SessionFactory sessionFactory
  • Constructor Details

    • StatelessDao

      public StatelessDao()
  • Method Details

    • setSessionFactory

      @Autowired public void setSessionFactory(org.hibernate.SessionFactory sessionFactory)
    • withStatelessSession

      protected <T> T withStatelessSession(Function<org.hibernate.StatelessSession,T> effect)