-->
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: Derby + Hibernate = INFORMATION_SCHEMA error
PostPosted: Thu Jul 12, 2012 5:38 pm 
Newbie

Joined: Thu Jul 12, 2012 5:22 pm
Posts: 4
I just set up my first Hibernate project using Derby and it seems to work except I get this error:

1 [main] ERROR org.hibernate.tool.hbm2ddl.SchemaUpdate - could not get database metadata
java.sql.SQLSyntaxErrorException: Schema 'INFORMATION_SCHEMA' does not exist

If I comment this out in my Hibernate.cfg.xml file then I don't get an error message, but what are the side effects of doing this? Is there a better way to handle this issue?

<!-- Drop and re-create the database schema on startup -->
<property name="hbm2ddl.auto">update</property>
<!-- THIS CREATES AN ERROR WITH DERBY
-->


Top
 Profile  
 
 Post subject: Re: Derby + Hibernate = INFORMATION_SCHEMA error
PostPosted: Sat Jul 14, 2012 2:57 pm 
Newbie

Joined: Thu Jul 12, 2012 5:22 pm
Posts: 4
Found it: I wasn't using the Derby dialect.


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.