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.util.HashSet; |
---|
6 | import java.util.Set; |
---|
7 | |
---|
8 | import org.medias.eccad.helpers.XmlHelper; |
---|
9 | |
---|
10 | /** |
---|
11 | * Unite generated by hbm2java |
---|
12 | */ |
---|
13 | public class Unite implements java.io.Serializable { |
---|
14 | |
---|
15 | // Fields |
---|
16 | |
---|
17 | private int idUnite; |
---|
18 | |
---|
19 | private String fullnameUnite; |
---|
20 | |
---|
21 | private String shortnameUnite; |
---|
22 | |
---|
23 | private Set<Parametre> parametres = new HashSet<Parametre>(0); |
---|
24 | |
---|
25 | // Constructors |
---|
26 | |
---|
27 | /** default constructor */ |
---|
28 | public Unite() { |
---|
29 | } |
---|
30 | |
---|
31 | /** minimal constructor */ |
---|
32 | public Unite(int idUnite, String fullnameUnite, String shortnameUnite) { |
---|
33 | this.idUnite = idUnite; |
---|
34 | this.fullnameUnite = fullnameUnite; |
---|
35 | this.shortnameUnite = shortnameUnite; |
---|
36 | } |
---|
37 | |
---|
38 | /** full constructor */ |
---|
39 | public Unite(int idUnite, String fullnameUnite, String shortnameUnite, |
---|
40 | Set<Parametre> parametres) { |
---|
41 | this.idUnite = idUnite; |
---|
42 | this.fullnameUnite = fullnameUnite; |
---|
43 | this.shortnameUnite = shortnameUnite; |
---|
44 | } |
---|
45 | |
---|
46 | public String toString() { |
---|
47 | String valeur; |
---|
48 | valeur = ""; |
---|
49 | valeur += XmlHelper.createNode("fullnameUnite", fullnameUnite); |
---|
50 | valeur += XmlHelper.createNode("shortnameUnite", shortnameUnite); |
---|
51 | valeur += XmlHelper.createNode("idUnite", idUnite); |
---|
52 | return valeur; |
---|
53 | } |
---|
54 | |
---|
55 | // Property accessors |
---|
56 | public int getIdUnite() { |
---|
57 | return this.idUnite; |
---|
58 | } |
---|
59 | |
---|
60 | public void setIdUnite(int idUnite) { |
---|
61 | this.idUnite = idUnite; |
---|
62 | } |
---|
63 | |
---|
64 | public String getFullnameUnite() { |
---|
65 | return this.fullnameUnite; |
---|
66 | } |
---|
67 | |
---|
68 | public void setFullnameUnite(String fullnameUnite) { |
---|
69 | this.fullnameUnite = fullnameUnite; |
---|
70 | } |
---|
71 | |
---|
72 | public String getShortnameUnite() { |
---|
73 | return this.shortnameUnite; |
---|
74 | } |
---|
75 | |
---|
76 | public void setShortnameUnite(String shortnameUnite) { |
---|
77 | this.shortnameUnite = shortnameUnite; |
---|
78 | } |
---|
79 | |
---|
80 | public Set<Parametre> getParametres() { |
---|
81 | return this.parametres; |
---|
82 | } |
---|
83 | |
---|
84 | public void setParametres(Set<Parametre> parametres) { |
---|
85 | this.parametres = parametres; |
---|
86 | } |
---|
87 | |
---|
88 | } |
---|