]
Nicklas Nordborg commented on HHH-5988:
---------------------------------------
This has been supported by Hibernate a long time. Just make sure that you use the
org.hibernate.dialect.MySQL5InnoDBDialect dialect.
HBM2DLL creates invalid Create Table statement on MySQL 5.5.x because
keyword *TYPE* is forbidden now
-----------------------------------------------------------------------------------------------------
Key: HHH-5988
URL:
http://opensource.atlassian.com/projects/hibernate/browse/HHH-5988
Project: Hibernate Core
Issue Type: Bug
Affects Versions: 3.6.1
Reporter: Sebastian Wagner
In the latest MySQL Version the query that hbm2dll produces:
create table adresses (adresses_id bigint not null, additionalname varchar(255),
comment_field varchar(255), fax varchar(255), starttime datetime, state_id bigint, street
varchar(255), town varchar(255), updatetime datetime, zip varchar(255), deleted
varchar(255), email varchar(255), phone varchar(255), primary key (adresses_id))
TYPE=MyISAM
will throw an error because of *TYPE=MyISAM* its name is now *ENGINE=MyISAM*
so the complete query would be:
create table adresses (adresses_id bigint not null, additionalname varchar(255),
comment_field varchar(255), fax varchar(255), starttime datetime, state_id bigint, street
varchar(255), town varchar(255), updatetime datetime, zip varchar(255), deleted
varchar(255), email varchar(255), phone varchar(255), primary key (adresses_id))
ENGINE=MyISAM
Unfortunally there seems to be neither a fix nor workaround for that Issue yet.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: