Reputation: 463
I have a domain class called Test. I want to call a method from its service TestService in the domain class. What is the right way to call in grails 2.2?
Thank you.
Upvotes: 0
Views: 73
Reputation: 171154
add:
def testService
to the top of your domain class, and call:
testService.method()
Where you want to call it
Upvotes: 1