source:
trunk/grails-app/domain/TaskRecurringSchedule.groovy
@
133
Last change on this file since 133 was 131, checked in by , 16 years ago | |
---|---|
File size: 508 bytes |
Rev | Line | |
---|---|---|
[127] | 1 | class TaskRecurringSchedule { |
[121] | 2 | |
[122] | 3 | Task task |
[131] | 4 | Task lastGeneratedSubTask |
[122] | 5 | Period period |
[121] | 6 | |
7 | Integer recurEvery | |
8 | Date startDate = new Date() | |
[127] | 9 | Date lastGeneratedDate |
[123] | 10 | Date nextDueDate |
[131] | 11 | boolean isEnabled = true |
[121] | 12 | |
13 | // static hasMany = [] | |
14 | ||
15 | static belongsTo = [Task] | |
16 | ||
[122] | 17 | static constraints = { |
[131] | 18 | lastGeneratedDate(blank:true, nullable:true) |
19 | lastGeneratedSubTask(blank:true, nullable:true) | |
[122] | 20 | } |
[121] | 21 | |
[124] | 22 | String toString() { |
23 | "Recur every ${recurEvery} ${period}" | |
24 | } | |
[121] | 25 | } |
26 |
Note: See TracBrowser
for help on using the repository browser.