Thanks, for your reply...
epbernard wrote:
Don't see any fundamental reason why it's not doable. Do you set a CompositeClass in <composite-id> ?
Yes, I'm; actually have done this by Middlegen, version r-3, here are a piece of .hbm.xml:
Code:
<composite-id name="comp_id" class="FirstPK">
<key-property
name="Id"
column="ID"
type="java.math.BigDecimal"
length="22"
/>
<!-- bi-directional many-to-one association to User -->
<key-many-to-one
name="user"
class="User"
>
<column name="USER_ID" />
</key-many-to-one>
</composite-id>
The question is: How I can catch a data from Table1, without calling to table at "one" or PK end ?
(well... yeah, it's a kind of tuning...)