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