Hi there,
I have a legacy piece of structure that looks like the following:
Code:
<composite-id>
<key-property name="foreign-key1" type="string" column="KEY1">
</key-property>
<key-property name="foreign-key2" type="string" column="KEY2">
</key-property>
<key-property name="foreign-key3" type="string" column="KEY3">
</key-property>
</composite-id>
(... other stuff goes here ...)
Is there a way of specifying a fetching strategy for one or more of the elements of the
composite key (e.g., putting 'fetch="select" ' inside the definition of 'key-property')?
For instance:
Code:
(...)
<key-property name="foreign-key2" type="string" column="KEY2" fetch="select">
</key-property>
<key-property name="foreign-key3" type="string" column="KEY3" fetch="join">
</key-property>
(...)
Thanks,
Barata