I am using Hibernate 3.3.2 in a fairly large project with PostgreSQL 8.4 using the PostgreSQLDialect.
The way we have our relationships set up, we end up doing a lot of searching on the Foreign Key attributes of our tables.
For performance reasons, I would like to have Hibernate add Indexes to the all of the foreign key columns when we are creating our tables using hbm2dll.auto.
MySQL would automatically add Indexes to these columns, but there doesn't seem to be a way to do this in Postgres.
Is there an option I can set somewhere, or something I can add to my hbm.xml files to make this happen?