Hello,
I have an entity that owns several many-to-one properties.
When I do a xxxDAO.load(id) on it, it seems to do a select for all target tables.
I would like to load foreign entities just when I need to do.
But I can't find any "lazy=true" option in the many-to-one tag...
Secondly, if I declare a many-to-one property in my hbm, initialization fails : "repeated columns".
I have to remove the FK_id simple property in my hbm to fix this.
But I really need sometimes to get just the FK_id and not the entire foreign entity.
Did I misunderstand something about the use of "many-to-one" ?
|