package com.northglass.entity;
|
|
import javax.persistence.Entity;
|
import javax.persistence.JoinColumn;
|
import javax.persistence.ManyToOne;
|
import javax.persistence.Table;
|
|
@Entity
|
@Table(name="gmms_manufacture_batch_machine")
|
public class ManufactureBatchMachine extends IdEntity {
|
|
private ManufactureBatch manufactureBatch;
|
private String machineType;
|
private long machineId;
|
|
public ManufactureBatchMachine() { }
|
|
public ManufactureBatchMachine(ManufactureBatch manufactureBatch,
|
String machineType, long machineId) {
|
this.manufactureBatch = manufactureBatch;
|
this.machineType = machineType;
|
this.machineId = machineId;
|
}
|
|
@ManyToOne
|
@JoinColumn(name="manufacture_batch_id")
|
public ManufactureBatch getManufactureBatch() {
|
return manufactureBatch;
|
}
|
|
public void setManufactureBatch(ManufactureBatch manufactureBatch) {
|
this.manufactureBatch = manufactureBatch;
|
}
|
|
public String getMachineType() {
|
return machineType;
|
}
|
|
public void setMachineType(String machineType) {
|
this.machineType = machineType;
|
}
|
|
public long getMachineId() {
|
return machineId;
|
}
|
|
public void setMachineId(long machineId) {
|
this.machineId = machineId;
|
}
|
}
|