package cn.com.liandisys.ycjt.ggcx.ferryship.model;

import java.text.SimpleDateFormat;
import java.util.Date;

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

@Entity
@Table(name = "ISN_FERRYSHIP_DES")
public class FerryShip {

    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @Column(name = "ID")
    private String id;

    //出发港口
    @Column(name = "DEPARTURE_PORT")
    private String departurePort;

    //航次
    @Column(name = "SHIPNUMBER")
    private String shipNumber;

    //开船时间
    @Column(name = "DEPARTURE_TIME")
    private Date departureTime;

    //到达时间
    @Column(name = "ARRIVAL_TIME")
    private Date arrivalTime;

    //到达港口
    @Column(name = "ARRIVAL_PORT")
    private String arrivalPort;

    @Column(name = "CREATE_PERSON")
    private String createPerson;

    @Column(name = "CREATE_TIME")
    private Date createTime;

    @Column(name = "UPDATE_PERSON")
    private String updatePerson;

    @Column(name = "UPDATE_TIME")
    private Date updateTime;

    public String getId() {

        return id;
    }

    public void setId(String id) {

        this.id = id;
    }

    public String getDeparturePort() {

        return departurePort;
    }

    public void setDeparturePort(String departurePort) {

        this.departurePort = departurePort;
    }

    public String getShipNumber() {

        return shipNumber;
    }

    public void setShipNumber(String shipNumber) {

        this.shipNumber = shipNumber;
    }

    //日期格式的转化
    public String getDepartureTime() {

        SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
        String departureTime1 = sdf.format(departureTime);

        return departureTime1;
    }

    public void setDepartureTime(Date departureTime1) {

        this.departureTime = departureTime1;
    }

    public String getArrivalTime() {

        SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
        String arrivalTime1 = sdf.format(arrivalTime);

        return arrivalTime1;
    }

    public void setArrivalTime(Date arrivalTime1) {

        this.arrivalTime = arrivalTime1;
    }

    public String getArrivalPort() {

        return arrivalPort;
    }

    public void setArrivalPort(String arrivalPort) {

        this.arrivalPort = arrivalPort;
    }

    public String getCreatePerson() {

        return createPerson;
    }

    public void setCreatePerson(String createPerson) {

        this.createPerson = createPerson;
    }

    public Date getCreateTime() {

        return createTime;
    }

    public void setCreateTime(Date createTime) {

        this.createTime = createTime;
    }

    public String getUpdatePerson() {

        return updatePerson;
    }

    public void setUpdatePerson(String updatePerson) {

        this.updatePerson = updatePerson;
    }

    public Date getUpdateTime() {

        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {

        this.updateTime = updateTime;
    }

}
