-->
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: Auto generate schema with Hypersonic...
PostPosted: Wed Feb 15, 2006 8:08 pm 
Newbie

Joined: Fri Aug 05, 2005 12:03 pm
Posts: 5
Hiya,

Our current hbm files were written with our Oracle instance in mind. Thus the all have schema="tableOwner" in them.

I'd been hoping to use hypersonic for testing, and have setup most things so that they work.
I've got:

jdbc:hsqldb:mem:.

and

<prop key="hibernate.hbm2ddl.auto">create-drop</prop>

However, hibernate is trying to create tables in the "tableOwner" schema, which does not exist. Is there a property to autocreate the schema for an in memory database?

Everything's fine in my tests with the 'schema="tableOwner"' bit removed, but then those hbm files no longer work with oracle.


Top
 Profile  
 
 Post subject: hibernate.default_schema
PostPosted: Thu Feb 16, 2006 4:30 pm 
Expert
Expert

Joined: Fri Jul 22, 2005 2:42 pm
Posts: 670
Location: Seattle, WA
Try not to use schema attributes in individual mappings and "set" or "not set" hibernate.default_schema property in the H configuration.

_________________
--------------
Konstantin

SourceLabs - dependable OpenSource systems


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.