This is extract of my mapping file:
<class name="XXX.A"
table="a"
lazy="false">
<many-to-one name="B"
lazy="proxy"
access="field.camelcase"
cascade="none"
not-null="false"
class="XXX.B"
column="id_b"/>
</class>
But when A
is loaded by its ID, I see "left join" to fetch B
. How to prevent this?
I may add that we use ISession.Get(...)
and not ISession.Load(...)
.