Grails - how to save a domain object inside a Service ?

Posted by w- on Stack Overflow See other posts from Stack Overflow or by w-
Published on 2010-12-31T22:45:45Z Indexed on 2010/12/31 22:54 UTC
Read the original article Hit count: 129

I have a service and inside one of the functions i'm creating a domain object and trying to save it.
when it gets to the save part, i get the error

No Hibernate Session bound to thread, and configuration does not allow creation of non-transactional one here

What do i need to do in order to save a domain object inside of a service. everything on the internet makes it look like this should just work....

© Stack Overflow or respective owner

Related posts about grails

Related posts about Services