hardy.ferentschik wrote:
I guess it depends. Are you having an existing schema and try to use hibernate on top if it? In this case you could just create and index and not 'tell' hibernate about it.
If, however, you want to use hibernate to create your schema via hibernate tools you will have to specify the index via the index property:
Code:
<property name="myProperty" index="myPropertyIndex"/>
Even if you are not planning to use hibernate tools I would consider it a good idea to explicitly specify the index.
--Hardy
------------------------------------------------------------------------------
Hello Hardy,
I have existent schema with hibernate mapping file, on that I have created the Index at database levle(ORACLE).
Now how to change the hbm.xml file corresponding to index on a column.
regards,
Divakar