torsten@25: package de.intevation.model; torsten@25: torsten@25: import java.io.Serializable; torsten@25: import javax.persistence.*; torsten@25: torsten@25: /** torsten@25: * The primary key class for the l_kommentar_p database table. torsten@25: * torsten@25: */ torsten@25: @Embeddable torsten@25: public class LKommentarPPK implements Serializable { torsten@25: //default serial version id, required for serializable classes. torsten@25: private static final long serialVersionUID = 1L; torsten@25: private String probeId; torsten@25: private Integer kId; torsten@25: torsten@25: public LKommentarPPK() { torsten@25: } torsten@25: torsten@25: @Column(name="probe_id") torsten@25: public String getProbeId() { torsten@25: return this.probeId; torsten@25: } torsten@25: public void setProbeId(String probeId) { torsten@25: this.probeId = probeId; torsten@25: } torsten@25: torsten@25: @Column(name="k_id") torsten@25: public Integer getKId() { torsten@25: return this.kId; torsten@25: } torsten@25: public void setKId(Integer kId) { torsten@25: this.kId = kId; torsten@25: } torsten@25: torsten@25: public boolean equals(Object other) { torsten@25: if (this == other) { torsten@25: return true; torsten@25: } torsten@25: if (!(other instanceof LKommentarPPK)) { torsten@25: return false; torsten@25: } torsten@25: LKommentarPPK castOther = (LKommentarPPK)other; torsten@25: return torsten@25: this.probeId.equals(castOther.probeId) torsten@25: && this.kId.equals(castOther.kId); torsten@25: } torsten@25: torsten@25: public int hashCode() { torsten@25: final int prime = 31; torsten@25: int hash = 17; torsten@25: hash = hash * prime + this.probeId.hashCode(); torsten@25: hash = hash * prime + this.kId.hashCode(); torsten@25: torsten@25: return hash; torsten@25: } torsten@25: }