-->
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.  [ 2 posts ] 
Author Message
 Post subject: Additional parameters for create table and index
PostPosted: Thu Mar 22, 2012 12:34 am 
Newbie

Joined: Wed Dec 21, 2011 6:14 pm
Posts: 2
We're using:
- SchemaExport to create a database.
- Our own dialect, specific for the Progress OpenEdge database.

We'd like to be able to add some custom parameters to the CREATE TABLE, CREATE INDEX and CREATE SEQUENCE commands generated by Hibernate. For example:
- create table PUB.tt ( name VARCHAR(100) ) AREA "Data";
- create index ttind ON PUB.tt ( name ASC ) AREA "Data";

Is it possible?
What Dialect methods do I need to override?

We're on 3.6 but could go to 4 if necessary.
Thanks
Steve


Top
 Profile  
 
 Post subject: Re: Additional parameters for create table and index
PostPosted: Thu Mar 22, 2012 5:39 am 
Expert
Expert

Joined: Tue Jun 16, 2009 3:36 am
Posts: 990
Quote:
What Dialect methods do I need to override?

For Tables, try with overriding
Code:
getTableTypeString()


For indexes and sequences I fear that currently (verified on Hibernate4.1.1) it is not possible.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 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.