source:
trunk/grails-app/domain/Supplier.groovy
@
397
| Last change on this file since 397 was 397, checked in by , 16 years ago | |
|---|---|
| File size: 405 bytes | |
| Rev | Line | |
|---|---|---|
| [116] | 1 | class Supplier { |
| 2 | SupplierType supplierType | |
| 3 | String name | |
| 4 | String description = "" | |
| 5 | boolean isActive = true | |
| 6 | ||
| [397] | 7 | static hasMany = [inventoryItems: InventoryItem, addresses: Address] |
| [373] | 8 | |
| [116] | 9 | static belongsTo = [InventoryItem] |
| 10 | ||
| [373] | 11 | static constraints = { |
| [116] | 12 | name(maxSize:50,unique:true,blank:false) |
| 13 | description(maxSize:100) | |
| 14 | } | |
| 15 | ||
| 16 | String toString() { | |
| 17 | "${this.name}" | |
| 18 | } | |
| 19 | } |
Note: See TracBrowser
for help on using the repository browser.
