Originally posted by kwame Iwegbue: I removed my implementation of equals and hashcode, now the code works fine.
Glad to know, it works
Originally posted by kwame Iwegbue: I wonder why I had those in the first place?
Overriding the eqauls and hashcode is perfectly fine, as long as they are implemented correct. If you are more curious about the best strategies for implementing equals and hashcode in your persistent classes, have a look at Equals and HashCode - Hibernate