[jboss-jira] [JBoss JIRA] (HIBERNATE-125) Hibernate does not allow String as Primary Key (where I have @GeneratedValue(strategy = GenerationType.AUTO) as well)
Steve Ebersole (JIRA)
issues at jboss.org
Thu Nov 19 10:15:01 EST 2015
[ https://issues.jboss.org/browse/HIBERNATE-125?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13130882#comment-13130882 ]
Steve Ebersole commented on HIBERNATE-125:
------------------------------------------
This is not the correct project to report Hibernate issues under. This Jira project is for reporting issues in the integration between Hibernate and WildFly. To report issues in Hibernate, please use https://hibernate.atlassian.net. Thanks.
Also JPA says that Strings cannot be used as a generated ({{@GeneratedValue}}) PK. So at best this is an enhancement request. In 5.0 we did add some capabilities around extending the support for allowable Java types for generated PKs.
> Hibernate does not allow String as Primary Key (where I have @GeneratedValue(strategy = GenerationType.AUTO) as well)
> ----------------------------------------------------------------------------------------------------------------------
>
> 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
> Priority: Critical
> 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 was sent by Atlassian JIRA
(v6.4.11#64026)
More information about the jboss-jira
mailing list