package ee.esutoniagodesu.domain.jmen.view; import org.hibernate.annotations.Immutable; import javax.persistence.*; import java.io.Serializable; @Entity @Immutable @Table(name = "vt_gloss2", schema = "jmen") public final class EN_VtGloss2 implements Serializable { private static final long serialVersionUID = 3871875048123525370L; private Integer entr; private Short sens; private String gtxt; @Id @Basic @Column(name = "entr", nullable = true, insertable = true, updatable = true) public Integer getEntr() { return entr; } public void setEntr(Integer entr) { this.entr = entr; } @Basic @Column(name = "gtxt", nullable = true, insertable = true, updatable = true, length = 2147483647) public String getGtxt() { return gtxt; } public void setGtxt(String gtxt) { this.gtxt = gtxt; } @Basic @Column(name = "sens", nullable = true, insertable = true, updatable = true) public Short getSens() { return sens; } public void setSens(Short sens) { this.sens = sens; } public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; EN_VtGloss2 vtGloss2 = (EN_VtGloss2) o; if (entr != null ? !entr.equals(vtGloss2.entr) : vtGloss2.entr != null) return false; if (gtxt != null ? !gtxt.equals(vtGloss2.gtxt) : vtGloss2.gtxt != null) return false; if (sens != null ? !sens.equals(vtGloss2.sens) : vtGloss2.sens != null) return false; return true; } public int hashCode() { int result = entr != null ? entr.hashCode() : 0; result = 31 * result + (sens != null ? sens.hashCode() : 0); result = 31 * result + (gtxt != null ? gtxt.hashCode() : 0); return result; } }