(Quick Reference)
Gateway artefact class sample with all possible config options.
You can omit any option and plugin will assume defaults.
package org.grails.mybatis.example
class SampleGateway {
/**
* dataSource where to execute queries from this gateway
* Default: 'dataSource'
*/
def static dataSourceName = 'dataSource' /**
* Force queries to behave as list selects instead of single result selects.
* By convention any query that ends with 'List' will be handled this way.
* Default: []
*/
def static forceAsListOps = ['selectSomething']}