package com.dada.hibernate;
/**
* TeacherId entity. @author MyEclipse Persistence Tools
*/
public class TeacherId implements java.io.Serializable {
// Fields
private Integer id;
private String name;
private String title;
// Constructors
/** default constructor */
public TeacherId() {
}
/** full constructor */
public TeacherId(Integer id, String name, String title) {
this.id = id;
this.name = name;
this.title = title;
}
// Property accessors
public Integer getId() {
return this.id;
}
public void setId(Integer id) {
this.id = id;
}
public String getName() {
return this.name;
}
public void setName(String name) {
this.name = name;
}
public String getTitle() {
return this.title;
}
public void setTitle(String title) {
this.title = title;
}
public boolean equals(Object other) {
if ((this == other))
return true;
if ((other == null))
return false;
if (!(other instanceof TeacherId))
return false;
TeacherId castOther = (TeacherId) other;
return
((this.getId() == castOther.getId()) || (this.getId() != null && castOther.getId() != null && this.getId().equals(castOther.getId())))
&& ((this.getName() == castOther.getName()) || (this.getName() != null && castOther.getName() != null && this.getName().equals(castOther.getName())))
&& ((this.getTitle() == castOther.getTitle()) || (this.getTitle() != null && castOther.getTitle() != null && this.getTitle().equals(castOther.getTitle())));
}
public int hashCode() {
int result = 17;
result = 37 * result + (getId() == null ? 0 : this.getId().hashCode());
result = 37 * result + (getName() == null ? 0 : this.getName().hashCode());
result = 37 * result + (getTitle() == null ? 0 : this.getTitle().hashCode());
return result;
}
}
/**
* TeacherId entity. @author MyEclipse Persistence Tools
*/
public class TeacherId implements java.io.Serializable {
// Fields
private Integer id;
private String name;
private String title;
// Constructors
/** default constructor */
public TeacherId() {
}
/** full constructor */
public TeacherId(Integer id, String name, String title) {
this.id = id;
this.name = name;
this.title = title;
}
// Property accessors
public Integer getId() {
return this.id;
}
public void setId(Integer id) {
this.id = id;
}
public String getName() {
return this.name;
}
public void setName(String name) {
this.name = name;
}
public String getTitle() {
return this.title;
}
public void setTitle(String title) {
this.title = title;
}
public boolean equals(Object other) {
if ((this == other))
return true;
if ((other == null))
return false;
if (!(other instanceof TeacherId))
return false;
TeacherId castOther = (TeacherId) other;
return
((this.getId() == castOther.getId()) || (this.getId() != null && castOther.getId() != null && this.getId().equals(castOther.getId())))
&& ((this.getName() == castOther.getName()) || (this.getName() != null && castOther.getName() != null && this.getName().equals(castOther.getName())))
&& ((this.getTitle() == castOther.getTitle()) || (this.getTitle() != null && castOther.getTitle() != null && this.getTitle().equals(castOther.getTitle())));
}
public int hashCode() {
int result = 17;
result = 37 * result + (getId() == null ? 0 : this.getId().hashCode());
result = 37 * result + (getName() == null ? 0 : this.getName().hashCode());
result = 37 * result + (getTitle() == null ? 0 : this.getTitle().hashCode());
return result;
}
}