[
https://issues.jboss.org/browse/HIBERNATE-125?page=com.atlassian.jira.plu...
]
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