52 lines
1.5 KiB
Java
52 lines
1.5 KiB
Java
package com.tky.web.entity;
|
||
|
||
import lombok.Data;
|
||
import lombok.NoArgsConstructor;
|
||
|
||
import javax.persistence.*;
|
||
|
||
/**
|
||
* 企业
|
||
*/
|
||
@Data
|
||
@NoArgsConstructor
|
||
@Entity
|
||
@Table(name="aq_bs_enterprise") // 安全_基础_企业
|
||
@org.hibernate.annotations.Table(appliesTo = "aq_bs_enterprise", comment = "企业")
|
||
public class Enterprise {
|
||
@Id
|
||
@GeneratedValue(strategy=GenerationType.SEQUENCE,generator="aq_bs_enterprise_ID_SEQ")
|
||
@SequenceGenerator(name="aq_bs_enterprise_ID_SEQ",sequenceName="aq_bs_enterprise_ID_SEQ",allocationSize=1)
|
||
private Long id;
|
||
|
||
//@Column(columnDefinition = "varchar(255) COMMENT '企业编号' ")
|
||
private String code;
|
||
|
||
//@Column(columnDefinition = "varchar(255) COMMENT '企业名称' ")
|
||
private String name;
|
||
|
||
//@Column(columnDefinition = "varchar(255) COMMENT '企业简称' ")
|
||
private String abbr;
|
||
|
||
//@Column(columnDefinition = "double COMMENT '经度' ")
|
||
private Double lon;
|
||
|
||
//@Column(columnDefinition = "double COMMENT '纬度' ")
|
||
private Double lat;
|
||
|
||
//@Column(columnDefinition = "double COMMENT '高度' ")
|
||
private Double height;
|
||
|
||
//@Column(columnDefinition = "varchar(50) COMMENT '企业类型' ")
|
||
private String type;
|
||
|
||
//@Column(columnDefinition = "varchar(50) COMMENT '企业性质' ")
|
||
private String quality;
|
||
|
||
//@Column(columnDefinition = "int COMMENT '排序' ")
|
||
private Integer num;
|
||
|
||
//@Column(columnDefinition = "integer COMMENT '是否使用,1是,0删除'")
|
||
private Integer useflag;
|
||
|
||
} |