package ee.esutoniagodesu.domain.jmen.pk;
import javax.persistence.Column;
import javax.persistence.Id;
import java.io.Serializable;
public final class EN_ConjoPK implements Serializable {
private static final long serialVersionUID = 523707429076840004L;
private short pos;
private short conj;
private boolean neg;
private boolean fml;
private short onum;
@Column(name = "conj", nullable = false, insertable = true, updatable = true)
@Id
public short getConj() {
return conj;
}
public void setConj(short conj) {
this.conj = conj;
}
@Column(name = "onum", nullable = false, insertable = true, updatable = true)
@Id
public short getOnum() {
return onum;
}
public void setOnum(short onum) {
this.onum = onum;
}
@Column(name = "pos", nullable = false, insertable = true, updatable = true)
@Id
public short getPos() {
return pos;
}
public void setPos(short pos) {
this.pos = pos;
}
@Column(name = "fml", nullable = false, insertable = true, updatable = true)
@Id
public boolean isFml() {
return fml;
}
public void setFml(boolean fml) {
this.fml = fml;
}
@Column(name = "neg", nullable = false, insertable = true, updatable = true)
@Id
public boolean isNeg() {
return neg;
}
public void setNeg(boolean neg) {
this.neg = neg;
}
public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
EN_ConjoPK conjoPK = (EN_ConjoPK) o;
if (conj != conjoPK.conj) return false;
if (fml != conjoPK.fml) return false;
if (neg != conjoPK.neg) return false;
if (onum != conjoPK.onum) return false;
if (pos != conjoPK.pos) return false;
return true;
}
public int hashCode() {
int result = (int) pos;
result = 31 * result + (int) conj;
result = 31 * result + (neg ? 1 : 0);
result = 31 * result + (fml ? 1 : 0);
result = 31 * result + (int) onum;
return result;
}
}