I'm creating a hierarchy of objects where Root object is Person that has collections of phones, addresses, and so on.
Code:
<set name="addresses" inverse="true" cascade="all" access="field">
<key column="ID_person" />
<one-to-many class="xxx.Address" />
</set>
After doing session.save(persona);
When I iterare over those collections, and for example get an Address, its ID attribute is NULL.
Other collections with the SAME description as above in configuration, work !
Nothing in the code has been changed, this usually worked out, all of a sudden started working this way.
Any ideas ?
Thanks.
Already FIXED sorry