-->
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: Create schema
PostPosted: Sun Feb 07, 2010 11:25 am 
Newbie

Joined: Wed Jan 23, 2008 4:23 am
Posts: 3
Hi

It is possible to exclude some table when i create a schema ?

I have many tables there are shared with 2 schema ; the problem is 1 schema can exist whithout the another !
And if i want to create the another schema the shared tables are cleared!

thx


Top
 Profile  
 
 Post subject: Re: Create schema
PostPosted: Mon Feb 08, 2010 3:49 am 
Expert
Expert

Joined: Tue Jun 16, 2009 3:36 am
Posts: 990
One solution would be following:

1. Set export to false and redirect the schema-creation into a file

Code:
<hbm2ddl   create="true"   export="false" outputfilename="bootstrap-ddl.sql" />


2. Remove the lines concerning the creation of the 2 problematic tables in bootstrap-ddl.sql
either by manually editing the file of doing it by some shell-script

3. Execute the bootstrap-ddl.sql on database with an appropriate sql-tool.


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.