use of org.hibernate.cfg.Configuration in project API by ca-cwds.
the class AllegationPerpetratorHistoryDaoIT method setup.
/**
*
*/
@Override
@Before
public void setup() {
sessionFactory = new Configuration().configure().buildSessionFactory();
sessionFactory.getCurrentSession().beginTransaction();
allegationPerpetratorHistoryDao = new AllegationPerpetratorHistoryDao(sessionFactory);
}
use of org.hibernate.cfg.Configuration in project API by ca-cwds.
the class ChildClientDaoIT method setup.
@Override
@Before
public void setup() {
sessionFactory = new Configuration().configure().buildSessionFactory();
sessionFactory.getCurrentSession().beginTransaction();
childClientDao = new ChildClientDao(sessionFactory);
}
use of org.hibernate.cfg.Configuration in project API by ca-cwds.
the class CountyOwnershipDaoIT method setup.
/**
*
*/
@Override
@Before
public void setup() {
sessionFactory = new Configuration().configure().buildSessionFactory();
sessionFactory.getCurrentSession().beginTransaction();
countyOwnershipDao = new CountyOwnershipDao(sessionFactory);
}
use of org.hibernate.cfg.Configuration in project API by ca-cwds.
the class CountyTriggerDaoIT method setup.
/**
*
*/
@Override
@Before
public void setup() {
sessionFactory = new Configuration().configure().buildSessionFactory();
sessionFactory.getCurrentSession().beginTransaction();
countyTriggerDao = new CountyTriggerDao(sessionFactory);
}
use of org.hibernate.cfg.Configuration in project API by ca-cwds.
the class RaceDaoIT method beforeClass.
@SuppressWarnings("javadoc")
@BeforeClass
public static void beforeClass() {
sessionFactory = new Configuration().configure("ns-hibernate.cfg.xml").buildSessionFactory();
raceDao = new RaceDao(sessionFactory);
}
Aggregations