九月 07, 2015 6:25:28 下午 org.hibernate.tool.hbm2ddl.SchemaUpdate execute ERROR: HHH000388: Unsuccess

九月 07, 2015 6:25:28 下午 org.hibernate.tool.hbm2ddl.SchemaUpdate execute
ERROR: HHH000388: Unsuccessful: create table rights (right_code varchar(255) not null auto_increment, right_desc varchar(255), right_name varchar(255), right_parent_code varchar(255), right_type varchar(255), right_url varchar(255), primary key (right_code)) ENGINE=InnoDB
九月 07, 2015 6:25:28 下午 org.hibernate.tool.hbm2ddl.SchemaUpdate execute

ERROR: Incorrect column specifier for column 'right_code'

解决:去掉‘@GeneratedValue(strategy=GenerationType.IDENTITY)’

你可能感兴趣的:(九月 07, 2015 6:25:28 下午 org.hibernate.tool.hbm2ddl.SchemaUpdate execute ERROR: HHH000388: Unsuccess)