AW: org.hibernate.HibernateException: createCriteria is not valid without active transaction

2009-10-06 Thread Peter Arnulf Lustig
ok! So I need a listener class like HibernateListener and a Transactionfactory in the config xml ? - Ursprüngliche Mail Von: Pieter Degraeuwe An: users@wicket.apache.org Gesendet: Dienstag, den 6. Oktober 2009, 09:49:42 Uhr Betreff: Re: org.hibernate.HibernateException: createCri

AW: org.hibernate.HibernateException: createCriteria is not valid without active transaction

2009-10-06 Thread Peter Arnulf Lustig
How can I do it manually? For example: I have a "DataProvider" class with a method: public static Administrator getAdministrator(Integer id) { Administrator administrator= (Administrator) HibernateUtil.getSessionFactory().getCurrentSession().createCriteria(Administrator.class).add(P