1 | package org.medias.eccad.persistance.hibernate.domaine; |
---|
2 | |
---|
3 | // Generated 1 Juin 2007 15:03:29 by Hibernate Tools 3.2.0.beta7 |
---|
4 | |
---|
5 | /** |
---|
6 | * Grille generated by hbm2java |
---|
7 | */ |
---|
8 | public class Grille implements java.io.Serializable { |
---|
9 | |
---|
10 | // Fields |
---|
11 | |
---|
12 | /** |
---|
13 | * |
---|
14 | */ |
---|
15 | private static final long serialVersionUID = 1L; |
---|
16 | |
---|
17 | private int idGrille; |
---|
18 | |
---|
19 | private Parametre parametre; |
---|
20 | |
---|
21 | private Produit produit; |
---|
22 | |
---|
23 | private Codification codification; |
---|
24 | |
---|
25 | // Constructors |
---|
26 | |
---|
27 | /** default constructor */ |
---|
28 | public Grille() { |
---|
29 | } |
---|
30 | |
---|
31 | /** minimal constructor */ |
---|
32 | public Grille(int idGrille) { |
---|
33 | this.idGrille = idGrille; |
---|
34 | } |
---|
35 | |
---|
36 | /** full constructor */ |
---|
37 | public Grille(int idGrille, Codification codification, Parametre parametre, |
---|
38 | Produit produit) { |
---|
39 | this.idGrille = idGrille; |
---|
40 | this.codification = codification; |
---|
41 | this.parametre = parametre; |
---|
42 | this.produit = produit; |
---|
43 | } |
---|
44 | |
---|
45 | public String toString() { |
---|
46 | if (parametre != null) |
---|
47 | return parametre.toString(); |
---|
48 | return ""; |
---|
49 | } |
---|
50 | |
---|
51 | // Property accessors |
---|
52 | public int getIdGrille() { |
---|
53 | return this.idGrille; |
---|
54 | } |
---|
55 | |
---|
56 | public void setIdGrille(int idGrille) { |
---|
57 | this.idGrille = idGrille; |
---|
58 | } |
---|
59 | |
---|
60 | public Parametre getParametre() { |
---|
61 | return this.parametre; |
---|
62 | } |
---|
63 | |
---|
64 | public void setParametre(Parametre parametre) { |
---|
65 | this.parametre = parametre; |
---|
66 | } |
---|
67 | |
---|
68 | public Produit getProduit() { |
---|
69 | return this.produit; |
---|
70 | } |
---|
71 | |
---|
72 | public void setProduit(Produit produit) { |
---|
73 | this.produit = produit; |
---|
74 | } |
---|
75 | |
---|
76 | public Codification getCodification() { |
---|
77 | return codification; |
---|
78 | } |
---|
79 | |
---|
80 | public void setCodification(Codification codification) { |
---|
81 | this.codification = codification; |
---|
82 | } |
---|
83 | |
---|
84 | } |
---|