package com.eswaraj.domain.base; import java.util.Date; import org.springframework.data.neo4j.annotation.GraphId; public class BaseNode { @GraphId protected Long id; protected Date dateCreated; protected Date dateModified; protected Long creatorId; protected Long modifierId; public Long getId() { return id; } public void setId(Long id) { this.id = id; } public Date getDateCreated() { return dateCreated; } public void setDateCreated(Date dateCreated) { this.dateCreated = dateCreated; } public Date getDateModified() { return dateModified; } public void setDateModified(Date dateModified) { this.dateModified = dateModified; } public Long getCreatorId() { return creatorId; } public void setCreatorId(Long creatorId) { this.creatorId = creatorId; } public Long getModifierId() { return modifierId; } public void setModifierId(Long modifierId) { this.modifierId = modifierId; } @Override public String toString() { return "BaseNode [id=" + id + ", dateCreated=" + dateCreated + ", dateModified=" + dateModified + ", creatorId=" + creatorId + ", modifierId=" + modifierId + "]"; } @Override public int hashCode() { final int prime = 31; int result = 1; result = prime * result + ((id == null) ? 0 : id.hashCode()); return result; } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (getClass() != obj.getClass()) return false; BaseNode other = (BaseNode) obj; if (id == null) { if (other.id != null) return false; } else if (!id.equals(other.id)) return false; return true; } }