Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Item - Bid example not working  RSS feed

 
Sandeep Vaid
Ranch Hand
Posts: 392
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am trying the example to Item-Bid

<!-- Item - Bid Association - One-to-Many -->
<set name="bids" inverse="true" cascade="save-update">
<key column="ITEM_ID" ></key>
<one-to-many class="Bid"/>
</set>

when i say session.save(item) -> it works
but when i add aBid to item using item.addBid(aBid);
this is not making aBid persistent. (not inserting a row in BID table)
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!