Go to most recent revision | Details | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
899 | dev | 1 | package ak.webcontrol.core.model; |
2 | |||
3 | import java.util.Date; |
||
4 | |||
5 | /** |
||
6 | * |
||
7 | * @hibernate.class table="domains" |
||
8 | */ |
||
9 | public class InetDomain |
||
10 | implements ModelObject |
||
11 | { |
||
12 | private Long id; |
||
13 | private String name; |
||
14 | private User owner; |
||
15 | private Date modStamp; |
||
16 | |||
17 | protected InetDomain() |
||
18 | { |
||
19 | } |
||
20 | |||
21 | /** |
||
22 | * |
||
23 | * @hibernate.id generator-class="native" |
||
24 | */ |
||
25 | public Long getId() |
||
26 | { |
||
27 | return id; |
||
28 | } |
||
29 | |||
30 | public void setId(Long id) |
||
31 | { |
||
32 | this.id = id; |
||
33 | } |
||
34 | |||
35 | /** |
||
36 | * |
||
37 | * @hibernate.property |
||
38 | */ |
||
39 | public String getName() |
||
40 | { |
||
41 | return name; |
||
42 | } |
||
43 | |||
44 | public void setName(String name) |
||
45 | { |
||
46 | this.name = name; |
||
47 | } |
||
48 | |||
49 | /** |
||
50 | * |
||
51 | * @hibernate.many-to-one |
||
52 | */ |
||
53 | public User getOwner() |
||
54 | { |
||
55 | return owner; |
||
56 | } |
||
57 | |||
58 | public void setOwner(User owner) |
||
59 | { |
||
60 | this.owner = owner; |
||
61 | } |
||
62 | |||
63 | /** |
||
64 | * |
||
65 | * @hibernate.timestamp column="mod_stamp" |
||
66 | */ |
||
67 | public Date getModStamp() |
||
68 | { |
||
69 | return modStamp; |
||
70 | } |
||
71 | |||
72 | public void setModStamp(Date modStamp) |
||
73 | { |
||
74 | this.modStamp = modStamp; |
||
75 | } |
||
76 | |||
77 | public String getTypeKey() |
||
78 | { |
||
79 | return ak.webcontrol.core.CoreResources.TYPE_DOMAIN; |
||
80 | } |
||
81 | |||
82 | public String getIdentificationString() |
||
83 | { |
||
84 | return getName(); |
||
85 | } |
||
86 | } |