Update ABaseEntity.java

add compareTo() method