[Fix] Fixed broken test in xmlpers

This commit is contained in:
Robert von Burg 2018-10-15 11:35:05 +02:00
parent bca2621e15
commit 96d9e8dc67
1 changed files with 6 additions and 1 deletions

View File

@ -22,7 +22,7 @@ import li.strolch.xmlpers.api.PersistenceContext;
import li.strolch.xmlpers.api.PersistenceTransaction;
import li.strolch.xmlpers.impl.PathBuilder;
public abstract class ObjectRef extends LockableObject {
public abstract class ObjectRef extends LockableObject implements Comparable<ObjectRef> {
protected final String name;
@ -71,4 +71,9 @@ public abstract class ObjectRef extends LockableObject {
public int hashCode() {
return Objects.hash(this.name);
}
@Override
public int compareTo(ObjectRef o) {
return this.name.compareTo(o.name);
}
}