class EntityReference implements Serializable, Cloneable, Comparable<EntityReference> {

    public int compareTo(EntityReference reference)
    {
        return new CompareToBuilder().append(toString(), reference.toString()).toComparison();
    }

    public  EntityReference(String name, EntityType type);
    public  EntityReference(String name, EntityType type, EntityReference parent);

}