-->
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.  [ 4 posts ] 
Author Message
 Post subject: Usefulness of SchemaUpdate with Hsqldb
PostPosted: Wed Nov 03, 2004 10:54 am 
Newbie

Joined: Sat Oct 30, 2004 9:12 am
Posts: 3
Hibernate version: 2.1.6

Hsqldb : 1.7.2

I must be missing something. SchemaUpdate appears only to be able to generate ddl for memory based tables in Hsqldb. Is there an option somewhere that would force creation of persistent tables, ie. "create cached table foo ..."?

Memory based tables are the default and are only appropriate for small tables. I love the portability of SchemaUpdate and would hate to have to write scripts for each potential dbms used by our app. Has anyone else experienced this limitation?

Thx


Top
 Profile  
 
 Post subject:
PostPosted: Wed Nov 03, 2004 7:37 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 7:19 pm
Posts: 2364
Location: Brisbane, Australia
There were significant changes in HSQDB in 1.7.2 where the tools were supporting earlier version(s). Help out and write a dialect for the latest version and submit to JIRA.


Top
 Profile  
 
 Post subject:
PostPosted: Fri Nov 05, 2004 3:27 pm 
Newbie

Joined: Sat Oct 30, 2004 9:12 am
Posts: 3
Unfortunately, as far as I can tell, it's not a matter of writing a new dialect. SchemaUpdate calls Table.sqlCreateString() which prepends the phrase "create table" regardless of dialect.

Any suggestions?


Top
 Profile  
 
 Post subject:
PostPosted: Fri Nov 05, 2004 11:42 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 7:19 pm
Posts: 2364
Location: Brisbane, Australia
I have not looked into SchemaUpdate's code for quite some time. I'd imaging it's easy to add an extra Dialect overrideable call in this location then the base dialect include the call (empty string) and appropriate (new) hsq dialect override with the approrpriate string.


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

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.