Uche created Bug HHH-8294
Issue Type: Bug Bug
Affects Versions: 4.2.2
Assignee: Unassigned
Attachments: data.zip
Created: 07/Jun/13 6:19 PM
Description:

using a composite primary key containing an auto incrementing column in jpa caused failure in table creation.

schema update tool fails when executing its generated ddl
create table Job (id bigint generated by default as identity, siteId bigint not null, name varchar(255), primary key (id, siteId))

I went to h2 forums to get help.They said there was a mistake in my query.They corrected it to
create table Job (id bigint auto_increment, siteId bigint not null, name varchar(255), primary key (id, siteId))

how do i make hibernate use this in its schema generation?
Thanks

Environment: H2 embedded database
Project: Hibernate ORM
Priority: Major Major
Reporter: Uche
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira