add implements Comparable in entities