use of org.hibernate.cfg.AnnotationConfiguration in project onebusaway-application-modules by camsys.
the class UserReportingDaoImplTest method setup.
@Before
public void setup() throws IOException {
_dao = new UserReportingDaoImpl();
Configuration config = new AnnotationConfiguration();
config = config.configure("org/onebusaway/transit_data_federation/hibernate-configuration.xml");
_sessionFactory = config.buildSessionFactory();
_dao.setSessionFactory(_sessionFactory);
}
use of org.hibernate.cfg.AnnotationConfiguration in project onebusaway-application-modules by camsys.
the class UserDaoImplTest method setup.
@Before
public void setup() throws IOException {
Configuration config = new AnnotationConfiguration();
config = config.configure("org/onebusaway/users/hibernate-configuration.xml");
_sessionFactory = config.buildSessionFactory();
_dao = new UserDaoImpl();
_dao.setSessionFactory(_sessionFactory);
}
Aggregations