Jaikiran, the link provided by you is really a nice one. but sill i have few doubts :
In case of Item -> Bid Bidirectional Association
Item.hbm.xml
Item.java
Can you please justify the output in the following cases :
Case 1:
inverse="true"
bid.setItem(this);
RESULT : No Error. No INERST statement
Case 2:
inverse="false"
bid.setItem(this);
RESULT : No Error. No INERST statement
Case 3:
inverse="true"
this.bids.add(bid);
RESULT : Exception in
thread "main" org.hibernate.PropertyValueException: not-null property references a null or transient value: Bid.item
Case 4:
inverse="false"
this.bids.add(bid);
RESULT : Exception in thread "main" org.hibernate.PropertyValueException: not-null property references a null or transient value: Bid.item

[ August 27, 2007: Message edited by: Sandeep Vaid ]