Nakoniec som problem vyriesil
Pouzil som vytvorenie SessionFactory v testclasse takto:
protected void setUp() throws Exception {
super.setUp();
Configuration conf = new Configuration().configure("hibernate.cfg.xml"); <-- takto ano
//Configuration conf = new Configuration().configure(new File("hibernate.cfg.xml")); <-- takto to nefunguje
try {
sessionFactory = conf.buildSessionFactory();
} catch (Exception e) {
e.printStackTrace();
throw e;
}
}
Marian Stevlik (Michal)
IS programmer / developer
GAMO a.s.
Kyjevske nam. 6
974 04 Banska Bystrica
web: www.gamo.sk
mail: [EMAIL PROTECTED]
tel: +421 48 4372098, 4137935, 4372111
gsm: +421 905 462010
icq: 38493645
skype: majklbb
- Re: Hibernate.cfg.xml a TestClass mstevlik
- Re: Hibernate.cfg.xml a TestClass - vyriesene mstevlik
