Ignore:
Timestamp:
Mar 3, 2011, 10:28:16 PM (14 years ago)
Author:
gav
Message:

Domain change, add highestSeverity to Entry, with custom validation.

File:
1 edited

Legend:

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

    r586 r837  
    33    Task task
    44    EntryType entryType
     5    ConditionSeverity highestSeverity
    56    ProductionReference productionReference
    67
     
    2021        durationMinute(min:0,max:59)
    2122        productionReference(nullable: true)
     23        // Nullable unless PM Entry Type.
     24        highestSeverity(nullable:true, validator: {val, obj ->
     25            if(val == null && (obj.entryType.id == 6))
     26                return 'not.nullable.for.pm.entry'
     27        })
    2228    }
    2329
Note: See TracChangeset for help on using the changeset viewer.