[jboss-user] [Beginner's Corner] - Re: JBoss:EJB is not creating table in MySQL DB
Wolfgang Knauf
do-not-reply at jboss.com
Mon Jan 17 09:38:40 EST 2011
Wolfgang Knauf [http://community.jboss.org/people/WolfgangKnauf] created the discussion
"Re: JBoss:EJB is not creating table in MySQL DB"
To view the discussion, visit: http://community.jboss.org/message/581233#581233
--------------------------------------------------------------
Hi,
first of all: you use a JPA 2.0 persistence.xml, but JBoss 5.x only supports 1.0. Maybe it is silently ignoring it ;-).
Next step: activate sql logging of the persistence layer. To do so, add this to your persistence.xml:
<properties>
<property name="hibernate.hbm2ddl.auto" value="create-drop"/>
<property name="hibernate.dialect" value="org.hibernate.dialect.MySQLInnoDBDialect"/>
*<property name="hibernate.show_sql" value="true"/>*
</properties>
Maybe there is a database error message show now.
Hope this helps
Wolfgang
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/581233#581233]
Start a new discussion in Beginner's Corner at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2075]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20110117/cee8a840/attachment.html
More information about the jboss-user
mailing list