root / hci / trunk / eneraptor-web-app / grails-app / domain / com / eneraptor / hci / HardwareSet.groovy @ 66
History | View | Annotate | Download (296 Bytes)
1 | 66 | alexbesir | package com.eneraptor.hci
|
---|---|---|---|
2 | |||
3 | class HardwareSet { |
||
4 | |||
5 | String hardId
|
||
6 | String name
|
||
7 | String IPaddress
|
||
8 | int portNumber
|
||
9 | |||
10 | static hasMany = [
|
||
11 | graphs: EneGraph,
|
||
12 | devices: DeviceInfo
|
||
13 | ] |
||
14 | |||
15 | static constraints = {
|
||
16 | hardId(blank:false,unique:true) |
||
17 | name(blank:false,unique:true) |
||
18 | } |
||
19 | } |