Changeset 180 for trunk/grails-app/domain
- Timestamp:
- Nov 4, 2009, 2:47:47 PM (15 years ago)
- Location:
- trunk/grails-app/domain
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/grails-app/domain/Asset.groovy
r161 r180 15 15 16 16 static constraints = { 17 name(unique:true )17 name(unique:true, blank:false) 18 18 } 19 19 -
trunk/grails-app/domain/TaskModification.groovy
r93 r180 1 import java.text.SimpleDateFormat 2 1 3 class TaskModification { 2 4 Person person … … 4 6 Task task 5 7 Date date = new Date() 6 String comment 8 String comment = "" 7 9 8 10 static belongsTo = [Person, TaskModificationType, Task] … … 16 18 } 17 19 18 static optionals = ["comment"] 20 String toString() { 21 def date = new SimpleDateFormat("EEE, dd-MMM-yyyy").format(this.date) 22 "${taskModificationType} by ${person} on ${date}." 23 } 19 24 }
Note: See TracChangeset
for help on using the changeset viewer.