[Building Sakai] Is there a way to get hibernate to manage indices?

Hedrick Charles hedrick at rutgers.edu
Tue Jul 27 17:51:30 PDT 2010


We're developing a new tool. We're using hibernate, partly to get its automatic schema management. 

Unfortunately I've been unable to get it to create indices. I've seen suggestions in a Spring forum that the way Sakai integrates with Hibernate causes Hibernate to ignore everything in the .HBM.XML files except mapping statements, and it looks to me like it ignores index= even in those.

Am I missing something?

For the moment I'm using the .sql file mechanism to create indices, but this is much less than ideal.

I checked for applications that try to use <database-object> I found at least one where the index seems to be missing in my freshly created database. A lot of tools seem to supply both .HBM files and .sql files. The .sql mechanism isn't bad for an annual release, but it's not so convenient during development when things are changing.




More information about the sakai-dev mailing list