This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
Could someone please point out to me where I might be going wrong?I'm trying to make sure that when an Item is persisted it's bids get persisted as well...I am using this property in my persistence.xml:
At the moment I can persist a bid or an item but persisting an Item will only result in an Item being added to the item table,not it's related Bids..
I have the following two entities(modified from the ActionBazaar app):
And finally the entity manager code(in my bean's business method):