Subversion Repositories SmartDukaan

Rev

Rev 36808 | Blame | Compare with Previous | Last modification | View Log | RSS feed

package com.spice.profitmandi.dao.entity.logistics;

import com.spice.profitmandi.common.model.ProfitMandiConstants;

import javax.persistence.*;
import java.time.LocalDateTime;

@Entity
@Table(name = "logistics.company_office")
public class CompanyOffice {

    @Id
    @Column
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private int id;

    @Column
    @Enumerated(EnumType.STRING)
    private ProfitMandiConstants.COMPANY_OFFICE_TYPE type;

    @Column(unique = true)
    private String code;

    @Column
    private String name;

    @Column
    private String address;

    @Column
    private String city;

    @Column
    private String state;

    @Column
    private double lat;

    @Column
    private double lng;

    @Column
    private boolean active;

    @Column(name = "create_timestamp")
    private LocalDateTime createTimestamp;

    @Column(name = "update_timestamp")
    private LocalDateTime updateTimestamp;

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public ProfitMandiConstants.COMPANY_OFFICE_TYPE getType() {
        return type;
    }

    public void setType(ProfitMandiConstants.COMPANY_OFFICE_TYPE type) {
        this.type = type;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getCity() {
        return city;
    }

    public void setCity(String city) {
        this.city = city;
    }

    public String getState() {
        return state;
    }

    public void setState(String state) {
        this.state = state;
    }

    public double getLat() {
        return lat;
    }

    public void setLat(double lat) {
        this.lat = lat;
    }

    public double getLng() {
        return lng;
    }

    public void setLng(double lng) {
        this.lng = lng;
    }

    public boolean isActive() {
        return active;
    }

    public void setActive(boolean active) {
        this.active = active;
    }

    public LocalDateTime getCreateTimestamp() {
        return createTimestamp;
    }

    public void setCreateTimestamp(LocalDateTime createTimestamp) {
        this.createTimestamp = createTimestamp;
    }

    public LocalDateTime getUpdateTimestamp() {
        return updateTimestamp;
    }

    public void setUpdateTimestamp(LocalDateTime updateTimestamp) {
        this.updateTimestamp = updateTimestamp;
    }

    @Override
    public String toString() {
        return "CompanyOffice{" +
                "id=" + id +
                ", type=" + type +
                ", name='" + name + '\'' +
                ", city='" + city + '\'' +
                ", state='" + state + '\'' +
                ", lat=" + lat +
                ", lng=" + lng +
                ", active=" + active +
                ", createTimestamp=" + createTimestamp +
                '}';
    }
}