Skip to content

Instantly share code, notes, and snippets.

@cofemei
Created April 20, 2017 03:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cofemei/88686477789bcd05385c73605ab3780e to your computer and use it in GitHub Desktop.
Save cofemei/88686477789bcd05385c73605ab3780e to your computer and use it in GitHub Desktop.
Grails3 Template Generation model
def domain = model(com.foo.Bar)
domain.className == "FooBar"
domain.fullName == "com.foo.FooBar"
domain.packageName == "com.foo"
domain.packagePath == "com/foo"
domain.propertyName == "fooBar"
domain.lowerCaseName == "foo-bar"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment