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

2010-05-08 Thread Richard Slide
Hello all, i try to do a simple web application with the classic layout Wicket->Spring->Hibernate When i try to make a simple request i receive the following error. WicketMessage: Error attaching this container for rendering: [Page class = ch.myexample.ListContacts, id = 0, version = 0] Root caus

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

2010-05-08 Thread Richard Slide
PM, Karolina Rusin wrote: > Hello Richard, > > Maybe you need to use @Transactional above your dao method? > Hope this helps. > > Best regards, > Karolina Rusin > > > 2010/5/8 Richard Slide > > > Hello all, > > i try to do a simple web application with

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

2010-05-08 Thread Richard Slide
I did it. On Sat, May 8, 2010 at 2:00 PM, James Carman wrote: > Put it on the impl class. > > On Sat, May 8, 2010 at 7:43 AM, Richard Slide > wrote: > > Yes i did it... > > this is DAO and impl > > > > > > > > > > public interface