package com.qxueyou.scc.exam.model;
|
// Generated 2018-3-19 20:40:08 by Hibernate Tools 5.2.8.Final
|
|
import javax.persistence.Column;
|
import javax.persistence.Embeddable;
|
|
/**
|
* ExamItemVId generated by hbm2java
|
*/
|
@Embeddable
|
public class ExamItemVId implements java.io.Serializable {
|
/**
|
*
|
*/
|
private static final long serialVersionUID = -3640937536495423279L;
|
|
@Column(name = "GROUP_ID")
|
private String groupId;
|
|
@Column(name = "EXERCISE_ITEM_ID")
|
private String exerciseItemId;
|
|
public ExamItemVId() {
|
}
|
|
public ExamItemVId(String groupId, String exerciseItemId) {
|
this.groupId = groupId;
|
this.exerciseItemId = exerciseItemId;
|
}
|
|
public String getGroupId() {
|
return groupId;
|
}
|
|
public void setGroupId(String groupId) {
|
this.groupId = groupId;
|
}
|
|
public String getExerciseItemId() {
|
return exerciseItemId;
|
}
|
|
public void setExerciseItemId(String exerciseItemId) {
|
this.exerciseItemId = exerciseItemId;
|
}
|
|
public boolean equals(Object other) {
|
if ((this == other))
|
return true;
|
if ((other == null))
|
return false;
|
if (!(other instanceof ExamItemVId))
|
return false;
|
|
ExamItemVId castOther = (ExamItemVId) other;
|
|
return (
|
((this.getGroupId() == castOther.getGroupId()) || (this.getGroupId() != null
|
&& castOther.getGroupId() != null && this.getGroupId().equals(castOther.getGroupId())))
|
|
&& ((this.getExerciseItemId() == castOther.getExerciseItemId()) || (this.getExerciseItemId() != null
|
&& castOther.getExerciseItemId() != null && this.getExerciseItemId().equals(castOther.getExerciseItemId())))
|
);
|
}
|
|
public int hashCode() {
|
int result = 17;
|
result = 37 * result + (getGroupId() == null ? 0 : this.getGroupId().hashCode());
|
result = 37 * result + (getExerciseItemId() == null ? 0 : this.getExerciseItemId().hashCode());
|
return result;
|
}
|
}
|