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 -

Website Login Issue developed in magento -

Can the constants be defined inside a model file of a framework in PHP? -