Hibernate version: 2.1.6
I am using the SchemaExport in my application to create the tables from the mapping files. I am using Hypersonic HSQLDB and want to use CACHED tables so say "CREATE CACHED TABLE" not "CREATE TABLE". I have been reading the hibernate source and as far as I can see there is no way of changing this without changing the hibernate code. Looks hard coded at line 143 of net.sf.hibernate.mapping.Table
Code:
public String sqlCreateString(Dialect dialect, Mapping p) throws HibernateException {
StringBuffer buf = new StringBuffer("create table ")
Have I missed somthing? is there a better way?
It should be coming from a attribute on the class element of the mapping file, so whats the best way of getting this added? Can fix source and create patch if that helps.
For now I can just call "Configuration.generateSchemaCreationScript()" instead of SchemaExport and do a string replace before executing it.
Many Thanks
Jasper Potts