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