com.arextest.diff.model.key.ReferenceEntity Maven / Gradle / Ivy
package com.arextest.diff.model.key;
import java.io.Serializable;
import java.util.List;
import java.util.Objects;
public class ReferenceEntity implements Serializable {
private List pkNodePath;
private List pkNodeListPath;
private List fkNodePath;
public ReferenceEntity() {
}
public ReferenceEntity(List pkNodePath, List pkNodeListPath,
List fkNodePath) {
this.pkNodePath = pkNodePath;
this.pkNodeListPath = pkNodeListPath;
this.fkNodePath = fkNodePath;
}
public List getPkNodePath() {
return pkNodePath;
}
public void setPkNodePath(List pkNodePath) {
this.pkNodePath = pkNodePath;
}
public List getPkNodeListPath() {
return pkNodeListPath;
}
public void setPkNodeListPath(List pkNodeListPath) {
this.pkNodeListPath = pkNodeListPath;
}
public List getFkNodePath() {
return fkNodePath;
}
public void setFkNodePath(List fkNodePath) {
this.fkNodePath = fkNodePath;
}
@Override
public int hashCode() {
int result = 0;
result = 31 * result + Objects.hashCode(pkNodePath);
result = 31 * result + Objects.hashCode(pkNodeListPath);
result = 31 * result + Objects.hashCode(fkNodePath);
return result;
}
@Override
public boolean equals(Object obj) {
if (!(obj instanceof ReferenceEntity)) {
return false;
}
ReferenceEntity that = (ReferenceEntity) obj;
return Objects.equals(this.pkNodePath, that.pkNodePath)
&& Objects.equals(this.pkNodeListPath, that.pkNodeListPath)
&& Objects.equals(this.fkNodePath, that.fkNodePath);
}
}