现在我写的oracle语句为
create table students(
stu_id number(6) primary key,
name varchar2(30)
);create table score(
id number(6) primary key,
stu_id number(6),
foreign key(stu_id) references students(stu_id)
);
怎么hibernate生成的配置文件为 one to many many to one
请问怎么生成one to one 的关系
create table students(
stu_id number(6) primary key,
name varchar2(30)
);create table score(
id number(6) primary key,
stu_id number(6),
foreign key(stu_id) references students(stu_id)
);
怎么hibernate生成的配置文件为 one to many many to one
请问怎么生成one to one 的关系
表会自动生成
现在写的sql语句就是上面的 出现了 one to many的关系 怎么样改sql语句实现 one to one