为了账号安全,请及时绑定邮箱和手机立即绑定

求解释这段代码什么意思

求解释这段代码什么意思

qq_wthokclv 2016-04-07 10:24:39
(mappedBy = orphanRemoval = ) (CascadeType.) (FetchMode.) List<Authorities>
查看完整描述

1 回答

?
qq___524

TA贡献171条经验 获得超74个赞

有没有上下相关的代码,一起粘出来

查看完整回答
反对 回复 2016-04-08
  • qq_wthokclv
    qq_wthokclv
    @Entity @Table(name = "USERS") public class User implements Serializable { private static final Logger logger = LoggerFactory.getLogger(User.class); @Id @Column(length = 50) private String username; @Column(length = 255, nullable = false) private String password; private String phoneNumber; private String email; private boolean enabled; private String avatar; private String fullName; @OneToMany(mappedBy = "username", orphanRemoval = true) @Cascade(CascadeType.ALL) @Fetch(FetchMode.SUBSELECT) private List<Authorities> authoritiesList;
  • 1 回答
  • 0 关注
  • 1249 浏览

添加回答

举报

0/150
提交
取消
意见反馈 帮助中心 APP下载
官方微信