Source

Texa / grails-app / domain / com / koyanainc / bc / Person.groovy

Full commit
package com.koyanainc.bc

class Person extends ResponsibleParty{

    String firstName = ""
    String lastName = ""
    String title = ""

    String emailAddress = ""
    String imHandle = ""
    String imService = ""

    String phoneNumberOffice = ""
    String phoneNumberOfficeExt = ""

    String phoneNumberMobile = ""
    String phoneNumberHome = ""
    String phoneNumberFax = ""

    Date lastLogin = new Date()
    String identityUrl = ""

    //String clientBcNum
    String userName = ""     //If user is an admin

    //If user is self
    String password = ""
    String token = ""

    //If user is an admin
    Boolean administrator = false
    Boolean deleted = false
    Boolean hasAccessToNewProjects = false
    
    //static belongsTo = [client:Client]

    String uuid = ""

    static mapping = {
        id generator: 'assigned'

    }

    static constraints = {
    firstName(nullable:true)
    lastName(nullable:true)
    title(nullable:true)

    emailAddress(nullable:true)
    imHandle(nullable:true)
    imService(nullable:true)

    phoneNumberOffice(nullable:true)
    phoneNumberOfficeExt(nullable:true)

    phoneNumberMobile(nullable:true)
    phoneNumberHome(nullable:true)
    phoneNumberFax(nullable:true)

    userName(blank:true)     //If user is an admin

    //If user is self
    password(blank:true)

    //If user is an admin
    hasAccessToNewProjects(nullable:true)

    }


    String toString()
    {
        firstName
    }
    
}