hibernate 注解1:M
A----->B(1:M)
?
class? A{
?
?
@OneToMany(mappedBy="alarmPlan",cascade=CascadeType.ALL)
private? List<B> blist;
?
}
?
class B{
?
@ManyToOne(targetEntity=com.test.A.class,fetch= FetchType.Lazy,cascade=CascadeType.ALL)
@JoinColumn(name="B表关联A表的列名B_ID",referColum)
Private A? a;
}
?
?
?
hibernate? could not execute native bulk manipulation query
?
主见产生重复时候