Hi,
I have this problem:
I have generated my DAO class (from a "ArcUtente" table) with Hibernate Tool 3.2 beta 9 and Eclipse 3.2
I have created: a simple test.jsp:
ArcUtente vo=new ArcUtente();
vo.setUser("test");
vo.setPassword("test");
List list=(new ArcUtenteHome()).findByExample(vo);
ArcUtente.java is my bean (generated from Hibernate Tools)
ArcUtenteHome.java is my DAO (generated from Hibernate Tools)
When I try my jsp, I take thid exception:
"org.hibernate.HibernateException: createCriteria is not valid without active transaction"
I believed that the DAO was independent
Can you help me?
Thanks,
Carlo
|