开发者

How to create clustered index on multiple columns using hibernate

I have 2 non clustered index, one on column A and one on column B. I want to edit the .hbm.xml file to remove these index and c开发者_JAVA百科reate one clustered index on the combination of Column A and B. What would be the attribute to use in the hbm.xml file? I donot want to use annotations in the persisting java file, since the existing code will have to be modified. Please guide me in this regard.


Multiple columns can be grouped into the same index by simply specifying the same index name.

<property name="columnA" index="CustName"/>
<property name="columnB" index="CustName"/>
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜