I am not able to add value objects to a set. There is error message with hashcode. I do overwrite the hashcode function like this:public int hashCode() {return getId().hashCode()^31;}
I tried just return getId().hashcode(). Same error:hashCode(TransferVO.java:139)at java.util.HashMap.hash(HashMap.java:263)at java.util.HashMap.put(HashMap.java:378)at java.util.HashSet.add(HashSet.java:192)