JBoss Community

Re: Entity hashCode and equals overriding

created by fabio valsecchi in EJB3 Development - View the full discussion

Yes, now in my application I can persist books and retrieve them. The problem is when the addArticle() is executed.

 

In fact since

 

Integer currentQuantity = cart.getArticles().get(book);

 

return always null then the book is added on the database but as a different record.

 

Thank you!

Reply to this message by going to Community

Start a new discussion in EJB3 Development at Community