package cn.chnmuseum.party.common.vo; public class Department { private Long id; private String name; private Long parentId; private String depPath; private boolean enabled; private boolean isParent; public Department() { } public Department(String name) { this.name = name; } public Long getId() { return id; } public void setId(Long id) { this.id = id; } public String getName() { return name; } public void setName(String name) { this.name = name; } public Long getParentId() { return parentId; } public void setParentId(Long parentId) { this.parentId = parentId; } public String getDepPath() { return depPath; } public void setDepPath(String depPath) { this.depPath = depPath; } public boolean isEnabled() { return enabled; } public void setEnabled(boolean enabled) { this.enabled = enabled; } public boolean isParent() { return isParent; } public void setParent(boolean parent) { isParent = parent; } @Override public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; Department that = (Department) o; return name != null ? name.equals(that.name) : that.name == null; } @Override public int hashCode() { return name != null ? name.hashCode() : 0; } }