What is the purpose of serviceMethod in a Grails service? -
i'm wondering why empty servicemethod method placed when create new service in grails. should fill out code , call it? or hint class should have methods put in it? name "servicemethod" special grails?
when use grails command create-service, grails performs code generation based on default templates. template new service looks this:
@artifact.package@class @artifact.name@ { static transactional = true def servicemethod() { } } you can run grails install-templates , check out files within src/templates view or customize code generated grails.
Comments
Post a Comment