package com.qxueyou.scc.admin.progress.model.view;
|
// Generated 2018-3-19 20:40:08 by Hibernate Tools 5.2.8.Final
|
|
import javax.persistence.Column;
|
import javax.persistence.Embeddable;
|
|
/**
|
* MySubjectVId generated by hbm2java
|
*/
|
@Embeddable
|
public class SubjectProgressTreeVId implements java.io.Serializable {
|
|
/**
|
*
|
*/
|
private static final long serialVersionUID = 7879956542709004098L;
|
private String userId;
|
private String nodeId;
|
|
public SubjectProgressTreeVId() {
|
}
|
|
|
@Column(name = "USER_ID", length = 32)
|
public String getUserId() {
|
return this.userId;
|
}
|
|
public void setUserId(String userId) {
|
this.userId = userId;
|
}
|
|
@Column(name = "NODE_ID")
|
public String getNodeId() {
|
return this.nodeId;
|
}
|
|
public void setNodeId(String nodeId) {
|
this.nodeId = nodeId;
|
}
|
|
|
public boolean equals(Object other) {
|
if ((this == other))
|
return true;
|
if ((other == null))
|
return false;
|
if (!(other instanceof SubjectProgressTreeVId))
|
return false;
|
SubjectProgressTreeVId castOther = (SubjectProgressTreeVId) other;
|
|
return (
|
((this.getUserId() == castOther.getUserId()) || (this.getUserId() != null
|
&& castOther.getUserId() != null && this.getUserId().equals(castOther.getUserId())))
|
|
|
&& ((this.getNodeId() == castOther.getNodeId()) || (this.getNodeId() != null
|
&& castOther.getNodeId() != null && this.getNodeId().equals(castOther.getNodeId())))
|
);
|
}
|
|
public int hashCode() {
|
int result = 17;
|
|
result = 37 * result + (getUserId() == null ? 0 : this.getUserId().hashCode());
|
result = 37 * result + (getNodeId() == null ? 0 : this.getNodeId().hashCode());
|
return result;
|
}
|
|
}
|