XklCompanyEntity.java 2.5 KB
package com.xkl.domain;
import lombok.Data;

import javax.persistence.*;

/**
 * Created by win7 on 2017/2/27.
 */
@Data
@Entity
@Table(name = "xkl_company")
public class XklCompanyEntity {
    @Id
    @GeneratedValue
    @Column(name = "id")
    private long id;
    @Basic
    @Column(name = "name")
    private String name;
    @Basic
    @Column(name = "parent_id")
    private long parentId;
    @Basic
    @Column(name = "province_id")
    private long provinceId;
    @Basic
    @Column(name = "city_id")
    private long cityId;
    @Basic
    @Column(name = "country_id")
    private long countryId;
    @Basic
    @Column(name = "company_code")
    private long companyCode;
    @Basic
    @Column(name = "company_type")
    private int companyType;
    @Basic
    @Column(name = "level")
    private int level;
    @Basic
    @Column(name = "show_level")
    private int showLevel;
    @Basic
    @Column(name = "status")
    private int status;

    public long getId() {
        return id;
    }

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

    public String getName() {
        return name;
    }

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

    public long getParentId() {
        return parentId;
    }

    public void setParentId(long parentId) {
        this.parentId = parentId;
    }

    public long getProvinceId() {
        return provinceId;
    }

    public void setProvinceId(long provinceId) {
        this.provinceId = provinceId;
    }

    public long getCityId() {
        return cityId;
    }

    public void setCityId(long cityId) {
        this.cityId = cityId;
    }

    public long getCountryId() {
        return countryId;
    }

    public void setCountryId(long countryId) {
        this.countryId = countryId;
    }

    public long getCompanyCode() {
        return companyCode;
    }

    public void setCompanyCode(long companyCode) {
        this.companyCode = companyCode;
    }

    public int getCompanyType() {
        return companyType;
    }

    public void setCompanyType(int companyType) {
        this.companyType = companyType;
    }

    public int getLevel() {
        return level;
    }

    public void setLevel(int level) {
        this.level = level;
    }

    public int getShowLevel() {
        return showLevel;
    }

    public void setShowLevel(int showLevel) {
        this.showLevel = showLevel;
    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }
}