package com.zyh.factory.entity;

import java.util.List;

import javax.persistence.Column;
import javax.persistence.Embedded;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

@Entity
@Table(name = "machine")
public class MachineEntity {

    @Id
    @GeneratedValue
    private String machineId;
    @Column
    private String machineName;
    @Column
    private String machineModel;
    @Column
    private int machineSpeed; //default 1.
    @Embedded
    private List<MachineWorkHourEntity> machineWorkhour;
}

@@ -345,16 +345,56 @@
 edValue%0A
+    private Long machineId;%0A    @Column%0A
     priv
@@ -403,34 +403,38 @@
 e String machine
-Id
+Status
 ;%0A    @Column%0A  
@@ -536,11 +536,15 @@
 ate 
-i
+I
 nt
+eger
  mac
@@ -638,10 +638,972 @@
 rkhour;%0A
+%09public Long getMachineId() %7B%0A%09%09return machineId;%0A%09%7D%0A%09public void setMachineId(Long machineId) %7B%0A%09%09this.machineId = machineId;%0A%09%7D%0A%09public String getMachineStatus() %7B%0A%09%09return machineStatus;%0A%09%7D%0A%09public void setMachineStatus(String machineStatus) %7B%0A%09%09this.machineStatus = machineStatus;%0A%09%7D%0A%09public String getMachineName() %7B%0A%09%09return machineName;%0A%09%7D%0A%09public void setMachineName(String machineName) %7B%0A%09%09this.machineName = machineName;%0A%09%7D%0A%09public String getMachineModel() %7B%0A%09%09return machineModel;%0A%09%7D%0A%09public void setMachineModel(String machineModel) %7B%0A%09%09this.machineModel = machineModel;%0A%09%7D%0A%09public Integer getMachineSpeed() %7B%0A%09%09return machineSpeed;%0A%09%7D%0A%09public void setMachineSpeed(Integer machineSpeed) %7B%0A%09%09this.machineSpeed = machineSpeed;%0A%09%7D%0A%09public List%3CMachineWorkHourEntity%3E getMachineWorkhour() %7B%0A%09%09return machineWorkhour;%0A%09%7D%0A%09public void setMachineWorkhour(List%3CMachineWorkHourEntity%3E machineWorkhour) %7B%0A%09%09this.machineWorkhour = machineWorkhour;%0A%09%7D%0A    %0A    %0A
 %7D%0A

Update MachineEntity.java