Ok, an Update.
I removed the lazy property :
Code:
<many-to-one name="mainSpatialObject" class="SpatialObject" column="idgis" lazy="proxy" property-ref="gisID"/>
But still the SQL statement for the property is made.
BUT -
I have another many-to-one property in this object
Code:
<many-to-one name="mainImage" class="Image" column="main_image"/>
And when I removed the ' lazy="true" ' for this one - no SQL statement are generated for it anymore.
What could be the difference between this 2 , that the first cuases Hibernate to generate an SQL statment, and the second doesnt ?
Thank you!