2014-10-20 71 views
1

我想创建一个索引或复合索引为XML文件上的集合的多个列。有没有适当的方法来做到这一点?我无法找到任何相关的东西。我看到它可能在SQL上。是否可以为多个列创建一个索引? hiberanate

这是我的例子;

<set name="properties" fetch="join" lazy="false" table="PLN_DEMAND_ORDER_ITM_PROPERTY"> 
    <key> 
     <column name="ORDER_ID" index="IDX_PLN_DOIP_ORDER_ID"/> <= 
     <column name="LINE_NO" index="IDX_PLN_DOIP_ORDER_ID"/> <= for both column only one index is needed 
    </key> 
      . 
      . 
      . 
</set> 

回答

0
Multiple columns can be grouped by simply **specifying the same index name** into the same index as you have clearly done it. 

link可以给你更好的理解。希望这有助于..

相关问题