拥有多个子实体时需要 @OneToMany(fetch = FetchType.EAGER),@Fetch(FetchMode.SUBSELECT) 或 @OneToMany(fetch = FetchType.LAZY),@Fetch(FetchMode.JOIN) 配合
拥有多个子实体时需要
@onetomany(fetch = FetchType.EAGER),@fetch(FetchMode.SUBSELECT) 或
@onetomany(fetch = FetchType.LAZY),@fetch(FetchMode.JOIN) 配合