1 | package com.medias.database.objects; |
---|
2 | |
---|
3 | import java.io.Serializable; |
---|
4 | import org.apache.commons.lang.builder.EqualsBuilder; |
---|
5 | import org.apache.commons.lang.builder.HashCodeBuilder; |
---|
6 | import org.apache.commons.lang.builder.ToStringBuilder; |
---|
7 | |
---|
8 | |
---|
9 | /** @author Hibernate CodeGenerator */ |
---|
10 | public class ParamCapteur implements Serializable { |
---|
11 | |
---|
12 | /** |
---|
13 | * |
---|
14 | */ |
---|
15 | private static final long serialVersionUID = 1L; |
---|
16 | |
---|
17 | /** identifier field */ |
---|
18 | private com.medias.database.objects.ParamCapteurPK comp_id; |
---|
19 | |
---|
20 | /** nullable persistent field */ |
---|
21 | private com.medias.database.objects.Parametre parametre; |
---|
22 | |
---|
23 | /** nullable persistent field */ |
---|
24 | private com.medias.database.objects.Capteur capteur; |
---|
25 | |
---|
26 | /** full constructor */ |
---|
27 | public ParamCapteur(com.medias.database.objects.ParamCapteurPK comp_id, com.medias.database.objects.Parametre parametre, com.medias.database.objects.Capteur capteur) { |
---|
28 | this.comp_id = comp_id; |
---|
29 | this.parametre = parametre; |
---|
30 | this.capteur = capteur; |
---|
31 | } |
---|
32 | |
---|
33 | /** default constructor */ |
---|
34 | public ParamCapteur() { |
---|
35 | } |
---|
36 | |
---|
37 | /** minimal constructor */ |
---|
38 | public ParamCapteur(com.medias.database.objects.ParamCapteurPK comp_id) { |
---|
39 | this.comp_id = comp_id; |
---|
40 | } |
---|
41 | |
---|
42 | public com.medias.database.objects.ParamCapteurPK getComp_id() { |
---|
43 | return this.comp_id; |
---|
44 | } |
---|
45 | |
---|
46 | public void setComp_id(com.medias.database.objects.ParamCapteurPK comp_id) { |
---|
47 | this.comp_id = comp_id; |
---|
48 | } |
---|
49 | |
---|
50 | public com.medias.database.objects.Parametre getParametre() { |
---|
51 | return this.parametre; |
---|
52 | } |
---|
53 | |
---|
54 | public void setParametre(com.medias.database.objects.Parametre parametre) { |
---|
55 | this.parametre = parametre; |
---|
56 | } |
---|
57 | |
---|
58 | public com.medias.database.objects.Capteur getCapteur() { |
---|
59 | return this.capteur; |
---|
60 | } |
---|
61 | |
---|
62 | public void setCapteur(com.medias.database.objects.Capteur capteur) { |
---|
63 | this.capteur = capteur; |
---|
64 | } |
---|
65 | |
---|
66 | public String toString() { |
---|
67 | return new ToStringBuilder(this) |
---|
68 | .append("comp_id", getComp_id()) |
---|
69 | .toString(); |
---|
70 | } |
---|
71 | |
---|
72 | public boolean equals(Object other) { |
---|
73 | if ( (this == other ) ) return true; |
---|
74 | if ( !(other instanceof ParamCapteur) ) return false; |
---|
75 | ParamCapteur castOther = (ParamCapteur) other; |
---|
76 | return new EqualsBuilder() |
---|
77 | .append(this.getComp_id(), castOther.getComp_id()) |
---|
78 | .isEquals(); |
---|
79 | } |
---|
80 | |
---|
81 | public int hashCode() { |
---|
82 | return new HashCodeBuilder() |
---|
83 | .append(getComp_id()) |
---|
84 | .toHashCode(); |
---|
85 | } |
---|
86 | |
---|
87 | } |
---|