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

Popular posts from this blog

javascript - Bootstrap Popover: iOS Safari strange behaviour -

Magento/PHP - Get phones on all members in a customer group -

session - Logging Out Using PHP -