Permalink
Browse files

Updated domain class completions

  • Loading branch information...
1 parent c86edd9 commit a761705b405d9e4f8516ababc52e447e638420bd @arturoherrero arturoherrero committed Sep 28, 2012
Showing with 40 additions and 0 deletions.
  1. +40 −0 Domain/GrailsDomain.sublime-completions
@@ -2,6 +2,42 @@
"scope": "source.groovy.grails.domain",
"completions": [
{
+ "trigger": "afterDelete",
+ "contents": "afterDelete() {\n\t${1:event}\n}"
+ },
+ {
+ "trigger": "afterInsert",
+ "contents": "afterInsert() {\n\t${1:event}\n}"
+ },
+ {
+ "trigger": "afterLoad",
+ "contents": "afterLoad() {\n\t${1:event}\n}"
+ },
+ {
+ "trigger": "afterUpdate",
+ "contents": "afterUpdate() {\n\t${1:event}\n}"
+ },
+ {
+ "trigger": "beforeDelete",
+ "contents": "beforeDelete() {\n\t${1:event}\n}"
+ },
+ {
+ "trigger": "beforeInsert",
+ "contents": "beforeInsert() {\n\t${1:event}\n}"
+ },
+ {
+ "trigger": "beforeLoad",
+ "contents": "beforeLoad() {\n\t${1:event}\n}"
+ },
+ {
+ "trigger": "beforeUpdate",
+ "contents": "beforeUpdate() {\n\t${1:event}\n}"
+ },
+ {
+ "trigger": "beforeValidate",
+ "contents": "beforeValidate() {\n\t${1:event}\n}"
+ },
+ {
"trigger": "belongsTo",
"contents": "static belongsTo = [${1:name}: ${2:Type}]"
},
@@ -38,6 +74,10 @@
"contents": "static namedQueries = {\n\t${1:query}\n}"
},
{
+ "trigger": "onLoad",
+ "contents": "onLoad() {\n\t${1:event}\n}"
+ },
+ {
"trigger": "transients",
"contents": "static transients = ['${1:propertyName}']"
}

0 comments on commit a761705

Please sign in to comment.