-->
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: Hooks for dialect specific data in schemaexport ant task
PostPosted: Thu May 31, 2007 11:50 pm 
Newbie

Joined: Mon Mar 28, 2005 8:49 pm
Posts: 3
I've read posts that reason that things like a tablespace tag shouldn't be added to XDoclet, that makes sense to me. But what I'd like to see is something added to the schemaexport task that allows generically adding text into various places of the DDL, for example, something like

Code:
<schemaexport aftertablecreate="in tablespace index in idx_tablespace long in lob_tablespace"
  ...>


would then generate

Code:
create table blah (
...
) in tablespace index in idx_tablespace long in lob_tablespace;


Similar things could also be used to generate grant statements (it would have to be the same permissions for every table).

Does that sound like a good idea? Does something like that already exist? If its something that people agree with, I'll write a patch to do it.


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jun 01, 2007 2:33 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
yes, there is also a jira for it (cant remember the number).

But nothing havent been done yet.

_________________
Max
Don't forget to rate


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jun 01, 2007 3:35 am 
Newbie

Joined: Mon Mar 28, 2005 8:49 pm
Posts: 3
I could only find one bug relating to this and it was rejected. One of the arguments against being able to specify tablespaces etc is that that's the DBAs responsibility, and schemaexport is a development tool. Often in projects there will be a time where a central development database is used, because not everything can be tested from the developers PCs... we are given the database by a DBA, and the DBA says "Here's the database, do what you want with it, but use these tablespaces, this user" etc. In that case it would be nice if the output DDL could create tables in tablespaces.

What I'm wondering, is if I were to go to the effort of writing the above improvements, would the patch be accepted or rejected?


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jun 01, 2007 3:57 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
depends on how it is implemented.

What I would like is that the "schemageneration" is externalized from the Configuration class so we can have a default implementation that can be customized programmatically at will by the user - then we can always hook in more generalized renderings via e.g. freemarker templates etc.

_________________
Max
Don't forget to rate


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.