source: ether_statistics/domain/interface/com/medias/database/objects/RequeteParametreCapteurPK.java @ 569

Last change on this file since 569 was 569, checked in by vmipsl, 12 years ago

Nouveau projet

File size: 1.9 KB
Line 
1package com.medias.database.objects;
2
3import java.io.Serializable;
4import org.apache.commons.lang.builder.EqualsBuilder;
5import org.apache.commons.lang.builder.HashCodeBuilder;
6import org.apache.commons.lang.builder.ToStringBuilder;
7
8
9/** @author Hibernate CodeGenerator */
10public 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}
Note: See TracBrowser for help on using the repository browser.