-->
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: Hibernate is not creating my table
PostPosted: Tue May 31, 2011 8:11 pm 
Newbie

Joined: Tue May 31, 2011 8:02 pm
Posts: 2
Hello guys.

I'm using hibernate 3.6.4 Final and I'm looking for hours for the trouble.

I already configure the property for hbm2dll at hibernate.cfg.xml:
Code:
<property name="hbm2ddl.auto" >update</property>


But the error keep coming:
Code:
Caused by: com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Table 'matricula.produto' doesn't exist


ANy tip?


Top
 Profile  
 
 Post subject: Re: Hibernate is not creating my table
PostPosted: Thu Jun 02, 2011 6:52 pm 
Hibernate Team
Hibernate Team

Joined: Fri Oct 05, 2007 4:47 pm
Posts: 2536
Location: Third rock from the Sun
don't you have a previous error?
Quote:
'matricula.produto'
sounds pretty much as an illegal table name, it should have tried to create it and logged an error at that point.

Might be useful to enable logging for the hbm2ddl statements: http://docs.jboss.org/hibernate/core/3.6/reference/en-US/html_single/#configuration-logging

_________________
Sanne
http://in.relation.to/


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.