Piotr Nowicki [
https://community.jboss.org/people/pedrokowalski] created the discussion
"Re: Entity hashCode and equals overriding"
To view the discussion, visit:
https://community.jboss.org/message/787936#787936
--------------------------------------------------------------
Ok, so you have some entries and you can't fetch them. You're saying that your
persistence is working correctly, so can you investigate a little more about what entrries
are in cart.getArticles()? Fetch them, fetch their hashCodes. It seems rather impossible
that you have hashcode and equals methods that returns always the same value (1 and true),
you have a collection with entities and still you're retrieving null...
--------------------------------------------------------------
Reply to this message by going to Community
[
https://community.jboss.org/message/787936#787936]
Start a new discussion in EJB3 Development at Community
[
https://community.jboss.org/choose-container!input.jspa?contentType=1&...]