[Fix] Fixed broken test in xmlpers
This commit is contained in:
parent
bca2621e15
commit
96d9e8dc67
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue