Ignore:
Timestamp:
Jan 26, 2009, 5:26:11 AM (16 years ago)
Author:
gav
Message:

Adjusted constraints and regen-all for Person/Group/Type? and Task/Group?.

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

Legend:

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

    r21 r35  
    11class Person {
    2     PersonGroup personGroup
    32    String firstName
    43    String lastName
     
    1615
    1716    static constraints = {
    18         firstName()
    19         lastName()
     17        firstName(maxSize:50,blank:false)
     18        lastName(maxSize:50,blank:false)
    2019        employeeID(blank:true, nullable:true)
    2120    }
  • trunk/src/grails-app/domain/PersonGroup.groovy

    r21 r35  
    77    static hasMany = [persons : Person]
    88
    9     static belongsTo = PersonGroup
     9    static constraints = {
     10        name(maxSize:50,unique:true,blank:false)
     11        description(maxSize:100)
     12    }
    1013
    1114    String toString() {
  • trunk/src/grails-app/domain/PersonGroupType.groovy

    r21 r35  
    66    static hasMany = [personGroups : PersonGroup]
    77
     8    static constraints = {
     9        name(maxSize:50,unique:true,blank:false)
     10        description(maxSize:100)
     11    }
     12
    813    String toString() {
    914        "${this.name}"
  • trunk/src/grails-app/domain/TaskGroup.groovy

    r25 r35  
    11class TaskGroup {
    22    String name
    3     String description
     3    String description = ""
    44    boolean isActive = true
    55
     
    77
    88    static constraints = {
    9         name(blank:false)
    10         description(blank:false)
     9        name(maxSize:50,unique:true,blank:false)
     10        description(maxSize:100)
    1111    }
    1212
Note: See TracChangeset for help on using the changeset viewer.