Hi all.
I'm using hibernate3 and trying to retrieve an Object which has another object in it. Something like:
<class A>
<many-to-one
name="B"
class="B"
cascade="all"
fetch="join"
update="true"
insert="true"
column="id_cod"
not-null="true"
/>
</class>
If I try to retrieve this object using HQL, I see (with Eclipse debugger) that Hibernate first create one object o type A and after that one object of type B.
But if I try session.get() the order is inverse, first B and after that, A. am I doing something that generate this behaviour? For me is important the order in which objects are created and for the second case Im having problems.
Thanks in advance
|