1
2
3
4
5 package ch.ledcom.hephaistos.dao;
6
7 import java.util.Collections;
8 import java.util.Set;
9
10 /***
11 *
12 * @author gehel
13 * @hibernate.class
14 */
15 public class ProductClass {
16
17
18
19
20 private Long id;
21
22 private String no;
23
24 private String nameF;
25
26 private String nameD;
27
28
29
30
31 private Set productGroups = Collections.EMPTY_SET;
32
33 /***
34 * @hibernate.id generator-class="native"
35 * @return Returns the id.
36 */
37 public Long getId() {
38 return id;
39 }
40 /***
41 * @param id The id to set.
42 */
43 protected void setId(Long id) {
44 this.id = id;
45 }
46 /***
47 * @hibernate.property
48 * @return Returns the nameD.
49 */
50 public String getNameD() {
51 return nameD;
52 }
53 /***
54 * @param nameD The nameD to set.
55 */
56 public void setNameD(String nameD) {
57 this.nameD = nameD;
58 }
59 /***
60 * @hibernate.property
61 * @return Returns the nameF.
62 */
63 public String getNameF() {
64 return nameF;
65 }
66 /***
67 * @param nameF The nameF to set.
68 */
69 public void setNameF(String nameF) {
70 this.nameF = nameF;
71 }
72 /***
73 * @hibernate.property
74 * @return Returns the no.
75 */
76 public String getNo() {
77 return no;
78 }
79 /***
80 * @param no The no to set.
81 */
82 public void setNo(String no) {
83 this.no = no;
84 }
85 /***
86 * @hibernate.set lazy="true"
87 * @hibernate.collection-key column="productClass_id"
88 * @hibernate.collection-one-to-many class="ch.ledcom.hephaistos.dao.ProductGroup"
89 * @return Returns the productGroups.
90 */
91 public Set getProductGroups() {
92 return productGroups;
93 }
94 /***
95 * @param productGroups The productGroups to set.
96 */
97 public void setProductGroups(Set productGroups) {
98 this.productGroups = productGroups;
99 }
100 }