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 RequeteParametreCapteurPK implements Serializable { |
---|
11 | |
---|
12 | /** |
---|
13 | * |
---|
14 | */ |
---|
15 | private static final long serialVersionUID = 1L; |
---|
16 | |
---|
17 | /** identifier field */ |
---|
18 | private Integer parametreId; |
---|
19 | |
---|
20 | /** identifier field */ |
---|
21 | private Integer capteurId; |
---|
22 | |
---|
23 | /** full constructor */ |
---|
24 | public RequeteParametreCapteurPK(Integer parametreId, Integer capteurId) { |
---|
25 | this.parametreId = parametreId; |
---|
26 | this.capteurId = capteurId; |
---|
27 | } |
---|
28 | |
---|
29 | /** default constructor */ |
---|
30 | public RequeteParametreCapteurPK() { |
---|
31 | } |
---|
32 | |
---|
33 | public Integer getParametreId() { |
---|
34 | return this.parametreId; |
---|
35 | } |
---|
36 | |
---|
37 | public void setParametreId(Integer parametreId) { |
---|
38 | this.parametreId = parametreId; |
---|
39 | } |
---|
40 | |
---|
41 | public Integer getCapteurId() { |
---|
42 | return this.capteurId; |
---|
43 | } |
---|
44 | |
---|
45 | public void setCapteurId(Integer capteurId) { |
---|
46 | this.capteurId = capteurId; |
---|
47 | } |
---|
48 | |
---|
49 | public String toString() { |
---|
50 | return new ToStringBuilder(this) |
---|
51 | .append("parametreId", getParametreId()) |
---|
52 | .append("capteurId", getCapteurId()) |
---|
53 | .toString(); |
---|
54 | } |
---|
55 | |
---|
56 | public boolean equals(Object other) { |
---|
57 | if ( (this == other ) ) return true; |
---|
58 | if ( !(other instanceof RequeteParametreCapteurPK) ) return false; |
---|
59 | RequeteParametreCapteurPK castOther = (RequeteParametreCapteurPK) other; |
---|
60 | return new EqualsBuilder() |
---|
61 | .append(this.getParametreId(), castOther.getParametreId()) |
---|
62 | .append(this.getCapteurId(), castOther.getCapteurId()) |
---|
63 | .isEquals(); |
---|
64 | } |
---|
65 | |
---|
66 | public int hashCode() { |
---|
67 | return new HashCodeBuilder() |
---|
68 | .append(getParametreId()) |
---|
69 | .append(getCapteurId()) |
---|
70 | .toHashCode(); |
---|
71 | } |
---|
72 | |
---|
73 | } |
---|