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 | import java.io.Serializable; |
---|
6 | import java.util.Date; |
---|
7 | |
---|
8 | /** |
---|
9 | * Grille generated by hbm2java |
---|
10 | */ |
---|
11 | public class Grille implements java.io.Serializable { |
---|
12 | |
---|
13 | // Fields |
---|
14 | |
---|
15 | private int idGrille; |
---|
16 | |
---|
17 | private Parametre parametre; |
---|
18 | |
---|
19 | private Produit produit; |
---|
20 | |
---|
21 | private Codification codification; |
---|
22 | |
---|
23 | // Constructors |
---|
24 | |
---|
25 | /** default constructor */ |
---|
26 | public Grille() { |
---|
27 | } |
---|
28 | |
---|
29 | /** minimal constructor */ |
---|
30 | public Grille(int idGrille) { |
---|
31 | this.idGrille = idGrille; |
---|
32 | } |
---|
33 | |
---|
34 | /** full constructor */ |
---|
35 | public Grille(int idGrille, Codification codification, Parametre parametre, |
---|
36 | Produit produit) { |
---|
37 | this.idGrille = idGrille; |
---|
38 | this.codification = codification; |
---|
39 | this.parametre = parametre; |
---|
40 | this.produit = produit; |
---|
41 | } |
---|
42 | |
---|
43 | public String toString() { |
---|
44 | if (parametre != null) |
---|
45 | return parametre.toString(); |
---|
46 | return ""; |
---|
47 | } |
---|
48 | |
---|
49 | // Property accessors |
---|
50 | public int getIdGrille() { |
---|
51 | return this.idGrille; |
---|
52 | } |
---|
53 | |
---|
54 | public void setIdGrille(int idGrille) { |
---|
55 | this.idGrille = idGrille; |
---|
56 | } |
---|
57 | |
---|
58 | public Parametre getParametre() { |
---|
59 | return this.parametre; |
---|
60 | } |
---|
61 | |
---|
62 | public void setParametre(Parametre parametre) { |
---|
63 | this.parametre = parametre; |
---|
64 | } |
---|
65 | |
---|
66 | public Produit getProduit() { |
---|
67 | return this.produit; |
---|
68 | } |
---|
69 | |
---|
70 | public void setProduit(Produit produit) { |
---|
71 | this.produit = produit; |
---|
72 | } |
---|
73 | |
---|
74 | public Codification getCodification() { |
---|
75 | return codification; |
---|
76 | } |
---|
77 | |
---|
78 | public void setCodification(Codification codification) { |
---|
79 | this.codification = codification; |
---|
80 | } |
---|
81 | |
---|
82 | } |
---|