Using grails service in domain class

Posted by BlackPanther on Stack Overflow See other posts from Stack Overflow or by BlackPanther
Published on 2010-03-17T04:25:50Z Indexed on 2010/03/17 4:31 UTC
Read the original article Hit count: 299

Filed under:

In my grails application I want use service.However it is always coming as null.I am using grails 1.1 version.How to solve this problem.

Sample code:

 class A{

 String name;
 def testService;

 static transients=['testService']

 }

Can we use service inside domain class?

© Stack Overflow or respective owner

Related posts about grails