更新时间:2023-11-24 12:51:52
@Embeddable
public class EmployeePK implements Serializable {
private long groupId;
@GeneratedValue(strategy = GenerationType.AUTO)
private long batchId;
public long getBatchId() {
return batchId;
}
public void setBatchId(long batchId) {
this.batchId = batchId;
}
//implements equals and hashcode
}