一对多 单向维护(在一的一方),如果不要维护update关系

来源:互联网 发布:三六五网络面试 编辑:程序博客网 时间:2024/05/01 11:16
 
 @OneToMany(cascade=CascadeType.PERSIST,targetEntity=DisaMedia.class,fetch = FetchType.EAGER)
    @JoinColumn(name="RECORD_ID",updatable=false)
原创粉丝点击