?? registration.groovy
字號:
class Registration { Race race String name Date dateOfBirth String gender = 'F' String postalAddress String emailAddress Date createdAt = new Date() static belongsTo = Race static optionals = ["postalAddress" ] static constraints = { name(maxLength:50,blank:false) dateOfBirth(nullable:false) gender(inList:["M", "F"]) postalAddress(maxLength:255) emailAddress(maxLength:50,email:true) race(nullable:false) } String toString() { "${this.name} : ${this.emailAddress}" } }
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -