We have found a problem on our application (a select query that join too much tables). The solution of this problem is to set fetch="select"
on the <join>
tag in our hibernate mapping file.
<subclass extends="...">
<join table="MyTable" fetch="select">
...
</join>
</subclass>
But this mapping is generated by hyberjaxb2. I haven't found how to add the fetch attribute into the <join>
tag. I can change the target table name (ie: MyTable) using this :
<hj:table name="MyTable"/>
but if I change it to
<hj:table name="MyTable" fetch="select" />
nothing is added in my mapping file.
So, how can I add the fetch propertie on the <join>
tag using hyperjaxb2 ?
Thank you.