[jboss-jira] [JBoss JIRA] Commented: (HIBERNATE-125) Hibernate not creating tables (in mysql)

Matthias Wessendorf (JIRA) jira-events at lists.jboss.org
Sat Feb 12 07:34:22 EST 2011


    [ https://issues.jboss.org/browse/HIBERNATE-125?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12581865#comment-12581865 ] 

Matthias Wessendorf commented on HIBERNATE-125:
-----------------------------------------------


The reason why Hibernate does NOT create the tables is that I am using this:


  @Id
  @GeneratedValue(strategy = GenerationType.AUTO)
  private String id;


=======
changing to Long works.
=======

EclipseLink and OpenJPA don't mind String as the PK ...






> Hibernate not creating tables (in mysql)
> ----------------------------------------
>
>                 Key: HIBERNATE-125
>                 URL: https://issues.jboss.org/browse/HIBERNATE-125
>             Project: Hibernate Integration
>          Issue Type: Bug
>         Environment: JBoss 6
>            Reporter: Matthias Wessendorf
>            Assignee: Steve Ebersole
>         Attachments: JBoss.war, JBossLocal.war
>
>
> I have the following in my persistence.xml:
>       <property name="hibernate.dialect" value="org.hibernate.dialect.MySQLDialect"/>
>       <property name="hibernate.hbm2ddl.auto" value="create"/>
> but hibernate is not creating my MySQL tables

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira


More information about the jboss-jira mailing list