设计了双向多对一 及多对一 的实体
但是创建数据库时出错
RROR [SchemaExport] Unsuccessful: create table Group (group_id integer not null auto_increment, name varchar(255), admin_id integer not null, primary key (group_id))
16:16:36,375 ERROR [SchemaExport] You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'Group (group_id integer not null auto_increment, name varchar(255), admin_id int' at line 1
16:16:36,515 ERROR [SchemaExport] Unsuccessful: alter table Contact add index FK9BEFBC001FB69F60 (group_id), add constraint FK9BEFBC001FB69F60 foreign key (group_id) references Group (group_id)
16:16:36,515 ERROR [SchemaExport] You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'Group (group_id)' at line 1
16:16:36,515 ERROR [SchemaExport] Unsuccessful: alter table Group add index FK41E065FC769AD60 (admin_id), add constraint FK41E065FC769AD60 foreign key (admin_id) references Admin (admin_id)
16:16:36,515 ERROR [SchemaExport] You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'Group add index FK41E065FC769AD60 (admin_id), add constraint FK41E065FC769AD60 f' at line 1另外两个实体创建成功