Did you put the dbindex attribute on the @jboss.relation tag?
It is on purpose that the indices are only created at table creation time,
as otherwise this would need extensive checks to prevent duplicate index errors or
putting an index n times on a column, when redeploying n times.
View the
That is not correct.
You can let JBoss create the indexes for you. It will be done when you set alter-table
to true.
It does check for duplicate indexes etc.
More info should be in the wiki.
Joachim
View the original post :