-->
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.  [ 6 posts ] 
Author Message
 Post subject: Generating Tables
PostPosted: Tue Jul 06, 2004 10:40 am 
Newbie

Joined: Thu Apr 15, 2004 7:41 am
Posts: 6
Is it possable to generate a single or multiple tables in a hypersonic database based upon an Hibernate.cfg.xml file.

If so is there a tutorial.

Or is there something to turn it into a database script.

Many thanks


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jul 06, 2004 10:43 am 
Newbie

Joined: Tue Jul 06, 2004 9:56 am
Posts: 14
You might want to check out
http://www.hibernate.org/102.html

Regards, Thomas


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jul 06, 2004 10:47 am 
Newbie

Joined: Thu Apr 15, 2004 7:41 am
Posts: 6
I thought it might be the SchemaExport but i am having difficulty trying to find out how to use it. Any suggestion, tutorials.


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jul 06, 2004 11:03 am 
Newbie

Joined: Tue Jul 06, 2004 9:56 am
Posts: 14
There is an example of it at:
http://www.systemmobile.com/articles/In ... rnate.html

I hope that is what you're searching for.


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jul 06, 2004 11:23 am 
Newbie

Joined: Thu Apr 15, 2004 7:41 am
Posts: 6
It does not seem to like xml configuration files
i keep getting.

net.sf.hibernate.HibernateException: The dialect was not set. Set the property hibernate.dialect.
at net.sf.hibernate.dialect.Dialect.getDialect(Dialect.java:354)
at net.sf.hibernate.dialect.Dialect.getDialect(Dialect.java:375)
at net.sf.hibernate.tool.hbm2ddl.SchemaExport.<init>(SchemaExport.java:57)
at net.sf.hibernate.tool.hbm2ddl.SchemaExport.<init>(SchemaExport.java:48)
at net.sf.hibernate.tool.hbm2ddl.SchemaExport.main(SchemaExport.java:303)

I am using hibernate 2.1 and hypersonic.

any ideas would be appreciated.

Many Thanks


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jul 06, 2004 12:35 pm 
Hibernate Team
Hibernate Team

Joined: Mon Aug 25, 2003 9:11 pm
Posts: 4592
Location: Switzerland
Guys, this is all covered in the reference documentation. Read it.

_________________
JAVA PERSISTENCE WITH HIBERNATE
http://jpwh.org
Get the book, training, and consulting for your Hibernate team.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 6 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.