[jboss-dev-forums] [EJB3 Development] - Re: Entity hashCode and equals overriding

Piotr Nowicki do-not-reply at jboss.com
Sat Jan 5 12:07:08 EST 2013


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/787914#787914

--------------------------------------------------------------
If you invoke addArticle(-) for the first time - the cart.getArtiles() is empty.

If you invoke addArticle(-) again - the cart.getArticles().get(book) will return null, but *will the cart.getArticles() be empty?* Try debugging it - is the previous article in the map (then you have a problem with hashCode and/or equals) or it's not there (and you have a problem with persistence).
--------------------------------------------------------------

Reply to this message by going to Community
[https://community.jboss.org/message/787914#787914]

Start a new discussion in EJB3 Development at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2030]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-dev-forums/attachments/20130105/aed1b33e/attachment.html 


More information about the jboss-dev-forums mailing list