Ignore:
Timestamp:
Jan 20, 2009, 8:08:17 PM (15 years ago)
Author:
gavin
Message:

Add to BootStrap?, work on Domain classes update ERD to match, again.

Location:
trunk/src/grails-app/domain
Files:
4 edited

Legend:

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

    r21 r25  
    22    Person person
    33    Task task
    4     Date dateTime
     4    EntryType entryType
     5    Date date
    56    Integer duration
    67    String comments
     
    1112
    1213    static constraints = {
    13         person(blank:false)
    14         task(blank:false)
    15         dateTime(nullable:true)
    16         duration(nullable:true)
    17         comments(maxLength:500)
     14        comments(maxSize:500)
    1815    }
    1916}
  • trunk/src/grails-app/domain/EntryType.groovy

    r21 r25  
    11class EntryType {
    2     Entry entry
    32    String name
    43    String description = ""
    5     boolean isActive
     4    boolean isActive = true
    65
    7     static belongsTo = Entry
     6    static hasMany = [entries: Entry]
    87   
    98    static contstraints = {
    10         entry()
    11         name(blank:false)
    12         description()
    13         isActive()
    149    }
    1510
  • trunk/src/grails-app/domain/ModificationType.groovy

    r21 r25  
    77
    88    static constraints = {
    9         name()
    10         description()
    11         isActive()
    129    }
    1310
  • trunk/src/grails-app/domain/TaskGroup.groovy

    r19 r25  
    22    String name
    33    String description
    4     boolean isActive
     4    boolean isActive = true
    55
    66    static hasMany = [tasks : Task]
Note: See TracChangeset for help on using the changeset viewer.