Hibernate version: 3.0
Before with hibernate2 we could access sets of an object after loading that object whether lazy was true or false for the set.
But with hibernate3.0, sets are null either with lazy=true or false
Code:
payment = (Payments) session.get(Payments.class, paymentid);
myset = pay.getPaymentCheckSet();
//here my set is empty????
here the set definition in mapping:
Code:
<set
inverse="true"
lazy="false"
name="PaymentCheckSet">
<key column="PaymentsID" />
<one-to-many class="PaymentCheck" />
</set>