public boolean equals(CourseAttribute entity) { return entity.id() == id(); }
public int compareTo(CourseAttribute entity) { if (equals(entity)) { return 0; } return RelationManager.compareIds(id(), entity.id()); }