Ignore:
Timestamp:
Feb 23, 2010, 2:07:15 PM (15 years ago)
Author:
gav
Message:

Add contacts to Person, Supplier, Manufacturer and Site.

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

Legend:

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

    r397 r402  
    55    boolean isActive = true
    66
    7     static hasMany = [inventoryItems: InventoryItem, addresses: Address]
     7    static hasMany = [contacts: Contact,
     8                                    addresses: Address,
     9                                    inventoryItems: InventoryItem]
    810
    911    static belongsTo = [InventoryItem]
  • trunk/grails-app/domain/Person.groovy

    r399 r402  
    66                        entries: Entry,
    77                        tasks: Task,
     8                        contacts: Contact,
    89                        addresses: Address]
    910
     
    1516    String firstName
    1617    String lastName
    17     String employeeID
     18    String employeeID = ''
    1819
    1920    /* Set after login by 'welcome' action, default to 12 hours, aka "sess.setMaxInactiveInterval(seconds) */
     
    3637        firstName(blank: false)
    3738        lastName(blank: false)
    38         employeeID(blank: true, nullable:true)
     39        employeeID()
    3940        description()
    4041        department(nullable:true)
     
    4546        pass(blank: false, minSize:4) //minSize:7
    4647        sessionTimeout(min:60, max:43200)
    47 
    4848    }
    4949
  • trunk/grails-app/domain/Site.groovy

    r397 r402  
    99                                siteExtendedAttributes: SiteExtendedAttribute,
    1010                                inventoryStores: InventoryStore,
     11                                contacts: Contact,
    1112                                addresses: Address]
    1213
  • trunk/grails-app/domain/Supplier.groovy

    r397 r402  
    55    boolean isActive = true
    66
    7     static hasMany = [inventoryItems: InventoryItem, addresses: Address]
     7    static hasMany = [contacts: Contact,
     8                                    addresses: Address,
     9                                    inventoryItems: InventoryItem]
    810
    911    static belongsTo = [InventoryItem]
Note: See TracChangeset for help on using the changeset viewer.