@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;
}