package com.mandi.fendan.persist; import java.io.Serializable; import javax.persistence.Entity; import javax.persistence.EnumType; import javax.persistence.Enumerated; import javax.persistence.Id; import javax.persistence.Table; import javax.persistence.UniqueConstraint; /** * @author cx * @version 创建时间:2017年10月23日 * 类说明 */ @Entity @Table(name="fd_vehicle",uniqueConstraints={@UniqueConstraint(columnNames="vehicleId")}) public class Fd_Vehicle implements Serializable{ @Id private String id; private String companyNo; private String driver; private double loadweight;//载重 private String note; private String phone; private boolean state;//启用/禁用 private String vehicleId;//车牌号 private double vehicleweight;//车重 @Enumerated(EnumType.STRING) private VehicleType type;//车辆类型 private String feature;//特征描述 private String IDNum;//身份证号 @Enumerated(EnumType.STRING) private VehicleStatus status;//车辆状态 这个值没有什么用了 public String getId() { return id; } public void setId(String id) { this.id = id; } public String getCompanyNo() { return companyNo; } public void setCompanyNo(String companyNo) { this.companyNo = companyNo; } public String getDriver() { return driver; } public void setDriver(String driver) { this.driver = driver; } public double getLoadweight() { return loadweight; } public void setLoadweight(double loadweight) { this.loadweight = loadweight; } public String getNote() { return note; } public void setNote(String note) { this.note = note; } public String getPhone() { return phone; } public void setPhone(String phone) { this.phone = phone; } public boolean isState() { return state; } public void setState(boolean state) { this.state = state; } public String getVehicleId() { return vehicleId; } public void setVehicleId(String vehicleId) { this.vehicleId = vehicleId; } public double getVehicleweight() { return vehicleweight; } public void setVehicleweight(double vehicleweight) { this.vehicleweight = vehicleweight; } public VehicleType getType() { return type; } public void setType(VehicleType type) { this.type = type; } public VehicleStatus getStatus() { return status; } public void setStatus(VehicleStatus status) { this.status = status; } public String getFeature() { return feature; } public void setFeature(String feature) { this.feature = feature; } public String getIDNum() { return IDNum; } public void setIDNum(String iDNum) { IDNum = iDNum; } }