[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


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:

      <property name="hibernate.hbm2ddl.auto" value="create-drop"/>
      <property name="hibernate.dialect" value="org.hibernate.dialect.MySQLInnoDBDialect"/> 
*<property name="hibernate.show_sql" value="true"/>*

Maybe there is a  database error message show now.

Hope this helps


Reply to this message by going to Community

Start a new discussion in Beginner's Corner at Community

-------------- 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