-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: SchemaExport and table types
PostPosted: Tue Aug 10, 2004 10:21 am 
Newbie

Joined: Tue Aug 10, 2004 10:08 am
Posts: 6
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


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.