|
Question:
JBOSS, CMP beans multi column index in jbosscmp-jdbc.xml ?Hi there,
On JBOSS we can define tables for CMP in file jbosscmp-jdbc.xml. Is there any way to tell jboss to create multi column index when creating tables for CMP entity beans. Now I have index based on one column. In file jbosscmp-jdbc.xml I have this: I mark the column with <dbindex/> and jboss makes database index on it. But now I want to make database index on two columns.
I think it is not possible to create multi column index. But you can use composite primary key for the CMP beans(which will make index on 2 or more columns participating in index). You have to create custom indexes manually in your database.
Vote:
Please vote! Your opinion matters!
If you haven't found what you've looking for, post a question
|
|