CatchSandeepVaid (23) [Avatar] Offline
#1
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)