gavin wrote:
That is not the hasCode(), it is the toString().
Looks like your equals() method is broken.
Yes, it is the toString() method that is displayed. just a typo.
I also thought the problem was on the equals() method, but i think that that it is correct. The equals in the PK class is very simple: it checks if the two DAYS (int) are equals. If not it returns false, otherwise it checks the two users by using the equals() method of the userBean that works on the pk of that class (that's an int).
Anyway I will recheck both equals() method, hoping that i made another typo in there...
Anyway, other suggestion?
regards,
Kazuma