Regular |
|
Joined: Sat Apr 10, 2004 8:39 pm Posts: 84
|
if use such mapping
<!-- bi-directional one-to-one association to PigeonholeRule -->
<one-to-one
name="pigeonholeRule"
class="com.fjky.xfile.core.orm.PigeonholeRule"
outer-join="auto"
/>
I can use hql as where XClass.PigeonholeRule.symbol<>'none'
if use such mapping, how to write hql????
<set name="setOfPigeonholeRule">
<key>
<column name="XTYPE_SYMBOL" length="16" not-null="false"
unique="true" />
</key>
<one-to-many
class="com.fjky.xfile.core.orm.PigeonholeRule" />
</set>
_________________ I am the creatxr of world.
|
|