额,坑爹的用JPA
1. 属性自动生成表,需要将
@Column 字段加在getter上
2.
@OneToMany(mappedBy = "对象属性")
Hibernate: alter table xxx add constraint FKxxxxn foreign key (lxxxd) references hxxxxxt (id)
额,坑爹的用JPA
1. 属性自动生成表,需要将
@Column 字段加在getter上
2.
@OneToMany(mappedBy = "对象属性")
Hibernate: alter table xxx add constraint FKxxxxn foreign key (lxxxd) references hxxxxxt (id)