Ignore:
Timestamp:
Nov 10, 2009, 1:26:53 PM (15 years ago)
Author:
gav
Message:

Add support for inventory item Pictures and Images.
Add new PersonService, refactor CreateDataService and TaskService to suite.

Location:
trunk/grails-app/domain
Files:
2 added
1 edited

Legend:

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

    r175 r182  
    55    InventoryLocation inventoryLocation
    66    Period averageDeliveryPeriod
     7    Picture picture
    78    String name
    89    String description = ""
     
    1718    boolean enableReorder = true
    1819
     20    static mapping = {
     21        picture cascade: 'all-delete-orphan', lazy: true, inverse: true
     22    }
     23
    1924    static hasMany = [alternateItems: InventoryItem,
    2025                                    spareFor: Asset,
     
    2631
    2732    static constraints = {
     33        picture(nullable:true)
    2834        name(unique:true, blank:false, maxSize:50)
    2935        description()
     
    4551    String toString() {"${this.name}"}
    4652}
    47        
Note: See TracChangeset for help on using the changeset viewer.