Ignore:
Timestamp:
Mar 29, 2009, 11:56:11 PM (16 years ago)
Author:
gav
Message:

Rename Modification and ModificationType? domains to TaskModification? and TaskModificationType? respectively. Re-generate controller and views. Update ERD. It's an evil but a necessary mouthful as we may want to track other modifications later.

Location:
trunk/src/grails-app/domain
Files:
2 edited
2 moved

Legend:

Unmodified
Added
Removed
  • trunk/src/grails-app/domain/Person.groovy

    r73 r93  
    33    static hasMany = [authorities: Authority,
    44                        personGroups: PersonGroup,
    5                         modifications: Modification,
     5                        taskModifications: TaskModification,
    66                        entries: Entry,
    77                        tasks: Task]
  • trunk/src/grails-app/domain/Task.groovy

    r91 r93  
    1515
    1616    static hasMany = [entries: Entry,
    17                         modifications: Modification,
     17                        taskModifications: TaskModification,
    1818                        assignedPersons: Person,
    1919                        subTasks: Task]
  • trunk/src/grails-app/domain/TaskModification.groovy

    r92 r93  
    1 class Modification {
     1class TaskModification {
    22    Person person
    3     ModificationType modificationType
     3    TaskModificationType taskModificationType
    44    Task task
    55    Date date = new Date()
    66    String comment
    77
    8     static belongsTo = [Person, ModificationType, Task]
     8    static belongsTo = [Person, TaskModificationType, Task]
    99
    1010    static constraints = {
    1111        person()
    12         modificationType()
     12        taskModificationType()
    1313        task()
    1414        date()
  • trunk/src/grails-app/domain/TaskModificationType.groovy

    r92 r93  
    1 class ModificationType {
     1class TaskModificationType {
    22    String name
    33    String description = ""
    44    boolean isActive = true
    55
    6     static hasMany = [modifications : Modification]
     6    static hasMany = [taskModifications : TaskModification]
    77
    88    static constraints = {
Note: See TracChangeset for help on using the changeset viewer.