@Entity
@Table(name = "adam_importfile")
@IdClass(BusinessAdviserFileId.class)
public class BusinessAdviserFile {
@Id
private String hash;
@JsonIgnore
@Id
@ManyToOne(fetch = FetchType.LAZY)
private Store store;
}
public class BusinessAdviserFileId implements Serializable {
private String hash;
private Long store;
}
手机扫一扫
移动阅读更方便
你可能感兴趣的文章