-->
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: hbm2ddl schema export fails since schema does not exist
PostPosted: Tue Sep 13, 2011 7:36 am 
Newbie

Joined: Tue Sep 13, 2011 5:55 am
Posts: 1
Location: Germany
This is either an FAQ or an RFE to Hibernate.

With Postgres and Hibernate the automatic ddl creation (hibernate.hbm2ddl.auto="create") does not work for tables in a particular schema unless the schema exists prior to the Hibernate/EntityManager initialization. I get the error

Code:
org.hibernate.tool.hbm2ddl.SchemaExport - ERROR: schema "xxx"  does not exist.


If the schema "xxx" exists in the Postgres DB it is no problem to auto-create the tables within it. So if there isn't any switch/property to make this work, it would be nice if the Hibernate team could enhance their product with this little feature?

Thanks,
Gerd


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.