[68] | 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 | |
---|
[70] | 17 | /** |
---|
| 18 | * |
---|
| 19 | */ |
---|
| 20 | private static final long serialVersionUID = 1L; |
---|
| 21 | |
---|
[68] | 22 | private int idUnite; |
---|
| 23 | |
---|
| 24 | private String fullnameUnite; |
---|
| 25 | |
---|
| 26 | private String shortnameUnite; |
---|
| 27 | |
---|
| 28 | private Set<Parametre> parametres = new HashSet<Parametre>(0); |
---|
| 29 | |
---|
| 30 | // Constructors |
---|
| 31 | |
---|
| 32 | /** default constructor */ |
---|
| 33 | public Unite() { |
---|
| 34 | } |
---|
| 35 | |
---|
| 36 | /** minimal constructor */ |
---|
| 37 | public Unite(int idUnite, String fullnameUnite, String shortnameUnite) { |
---|
| 38 | this.idUnite = idUnite; |
---|
| 39 | this.fullnameUnite = fullnameUnite; |
---|
| 40 | this.shortnameUnite = shortnameUnite; |
---|
| 41 | } |
---|
| 42 | |
---|
| 43 | /** full constructor */ |
---|
| 44 | public Unite(int idUnite, String fullnameUnite, String shortnameUnite, |
---|
| 45 | Set<Parametre> parametres) { |
---|
| 46 | this.idUnite = idUnite; |
---|
| 47 | this.fullnameUnite = fullnameUnite; |
---|
| 48 | this.shortnameUnite = shortnameUnite; |
---|
| 49 | } |
---|
| 50 | |
---|
| 51 | public String toString() { |
---|
| 52 | String valeur; |
---|
| 53 | valeur = ""; |
---|
| 54 | valeur += XmlHelper.createNode("fullnameUnite", fullnameUnite); |
---|
| 55 | valeur += XmlHelper.createNode("shortnameUnite", shortnameUnite); |
---|
| 56 | valeur += XmlHelper.createNode("idUnite", idUnite); |
---|
| 57 | return valeur; |
---|
| 58 | } |
---|
| 59 | |
---|
| 60 | // Property accessors |
---|
| 61 | public int getIdUnite() { |
---|
| 62 | return this.idUnite; |
---|
| 63 | } |
---|
| 64 | |
---|
| 65 | public void setIdUnite(int idUnite) { |
---|
| 66 | this.idUnite = idUnite; |
---|
| 67 | } |
---|
| 68 | |
---|
| 69 | public String getFullnameUnite() { |
---|
| 70 | return this.fullnameUnite; |
---|
| 71 | } |
---|
| 72 | |
---|
| 73 | public void setFullnameUnite(String fullnameUnite) { |
---|
| 74 | this.fullnameUnite = fullnameUnite; |
---|
| 75 | } |
---|
| 76 | |
---|
| 77 | public String getShortnameUnite() { |
---|
| 78 | return this.shortnameUnite; |
---|
| 79 | } |
---|
| 80 | |
---|
| 81 | public void setShortnameUnite(String shortnameUnite) { |
---|
| 82 | this.shortnameUnite = shortnameUnite; |
---|
| 83 | } |
---|
| 84 | |
---|
| 85 | public Set<Parametre> getParametres() { |
---|
| 86 | return this.parametres; |
---|
| 87 | } |
---|
| 88 | |
---|
| 89 | public void setParametres(Set<Parametre> parametres) { |
---|
| 90 | this.parametres = parametres; |
---|
| 91 | } |
---|
| 92 | |
---|
| 93 | } |
---|