Last change
on this file since 344 was
146,
checked in by gav, 15 years ago
|
Remove invalid contraints reported by Tomcat debug logs.
|
File size:
302 bytes
|
Rev | Line | |
---|
[66] | 1 | class EntryType { |
---|
| 2 | String name |
---|
| 3 | String description = "" |
---|
| 4 | boolean isActive = true |
---|
| 5 | |
---|
| 6 | static hasMany = [entries: Entry] |
---|
[146] | 7 | |
---|
[66] | 8 | static contstraints = { |
---|
[116] | 9 | name(maxSize:50,unique:true,blank:false) |
---|
| 10 | description(maxSize:100) |
---|
[66] | 11 | } |
---|
| 12 | |
---|
| 13 | String toString() { |
---|
| 14 | "${this.name}" |
---|
| 15 | } |
---|
| 16 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.