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