Changeset 146 for trunk


Ignore:
Timestamp:
Oct 5, 2009, 7:02:32 PM (15 years ago)
Author:
gav
Message:

Remove invalid contraints reported by Tomcat debug logs.

Location:
trunk/grails-app/domain
Files:
7 edited

Legend:

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

    r116 r146  
    55
    66    static hasMany = [entries: Entry]
    7    
     7
    88    static contstraints = {
    99        name(maxSize:50,unique:true,blank:false)
  • trunk/grails-app/domain/InventoryItem.groovy

    r116 r146  
    3535        manufacturersPartNumber(blank:true, nullable:true)
    3636        suppliersPartNumber(blank:true, nullable:true)
    37         recommendedReorderPoint(blank:true, nullable:true)
    38         averageDeliveryTime(blank:true, nullable:true)
     37        recommendedReorderPoint(nullable:true)
     38        averageDeliveryTime(nullable:true)
    3939    }
    4040
  • trunk/grails-app/domain/InventoryMovement.groovy

    r116 r146  
    1212        quantity()
    1313        inventoryMovementType()
    14         task(blank:true, nullable:true)
     14        task(nullable:true)
    1515        date()
    1616    }
  • trunk/grails-app/domain/MaintenanceAction.groovy

    r131 r146  
    2020
    2121    static constraints = {
    22         maintenancePolicy(blank:true, nullable:true)
    23         systemSection(blank:true, nullable:true)
    24         asset(blank:true, nullable:true)
    25         assetType(blank:true, nullable:true)
    26         assembly(blank:true, nullable:true)
    27         subAssembly(blank:true, nullable:true)
    28         componentItem(blank:true, nullable:true)
    29         procedureStepNumber(blank:true, nullable:true)
     22        maintenancePolicy(nullable:true)
     23        systemSection(nullable:true)
     24        asset(nullable:true)
     25        assetType(nullable:true)
     26        assembly(nullable:true)
     27        subAssembly(nullable:true)
     28        componentItem(nullable:true)
     29        procedureStepNumber(nullable:true)
    3030    }
    3131
  • trunk/grails-app/domain/StoredItem.groovy

    r125 r146  
    88
    99    static constraints = {
    10         quantity(minSize:0)
     10        quantity(min:0)
    1111    }
    1212
  • trunk/grails-app/domain/Task.groovy

    r131 r146  
    3838        taskPriority()
    3939        taskStatus()
    40         parentTask(blank: true, nullable:true)
    41         primaryAsset(blank: true, nullable:true)
    42         taskRecurringSchedule(blank: true, nullable:true)
    43         taskProcedure(blank: true, nullable:true)
    44        
     40        parentTask(nullable:true)
     41        primaryAsset(nullable:true)
     42        taskRecurringSchedule(nullable:true)
     43        taskProcedure(nullable:true)
     44
    4545    }
    4646
  • trunk/grails-app/domain/TaskRecurringSchedule.groovy

    r137 r146  
    2626        taskDuration(min:0, max:365)
    2727        generateAhead(min:0, max:365)
    28         lastGeneratedDate(blank:true, nullable:true)
    29         lastGeneratedSubTask(blank:true, nullable:true)
     28        lastGeneratedDate(nullable:true)
     29        lastGeneratedSubTask(nullable:true)
    3030    }
    3131
     
    3333        "Recur every ${recurEvery} ${recurPeriod}"
    3434    }
    35    
     35
    3636    // As of Grails 1.1.1 this does not fire/pass before validation.
    3737    // But setting some defaults above to pass validation and placing this code here
     
    4242        setNextTargetCompletionDate()
    4343    }
    44    
     44
    4545    public void setNextGenerationDate() {
    4646        switch (generateAheadPeriod.period) {
     
    7171        if( nextGenerationDate < now) {nextGenerationDate = now}
    7272    }
    73    
     73
    7474    public void setNextTargetCompletionDate() {
    7575        switch (taskDurationPeriod.period) {
     
    9898        }
    9999    }
    100    
     100
    101101}
    102102
Note: See TracChangeset for help on using the changeset viewer.