2014-10-20 103 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可以給你更好的理解。希望這有助於..

相關問題