Commit 45ad7be551b519a355082ebd1eae987dc0930bc9

Authored by 李强
1 parent 3e3c02f3

公司实体类

src/main/java/com/bsth/entity/Business.java 0 → 100644
  1 +package com.bsth.entity;
  2 +
  3 +import javax.persistence.Entity;
  4 +import javax.persistence.GeneratedValue;
  5 +import javax.persistence.GenerationType;
  6 +import javax.persistence.Id;
  7 +import javax.persistence.Table;
  8 +
  9 +/**
  10 + *
  11 + * @ClassName : Business(公司实体类)
  12 + *
  13 + * @Author : bsth@lq
  14 + *
  15 + * @Description : TODO(公司信息)
  16 + *
  17 + * @Data : 2016-04-27
  18 + *
  19 + * @Version 公交调度系统BS版 0.1
  20 + *
  21 + */
  22 +
  23 +@Entity
  24 +@Table(name = "bsth_c_business")
  25 +public class Business {
  26 +
  27 + // ID
  28 + @Id
  29 + @GeneratedValue(strategy = GenerationType.IDENTITY)
  30 + private Integer id;
  31 +
  32 + // 企业<公司>名称
  33 + private String businessName;
  34 +
  35 + // 企业<公司>代码
  36 + private Integer businessCode;
  37 +
  38 + // 所属企业<公司>代码
  39 + private Integer upCode;
  40 +
  41 + // 描述
  42 + private String descriptions;
  43 +
  44 + public Integer getId() {
  45 + return id;
  46 + }
  47 +
  48 + public void setId(Integer id) {
  49 + this.id = id;
  50 + }
  51 +
  52 + public String getBusinessName() {
  53 + return businessName;
  54 + }
  55 +
  56 + public void setBusinessName(String businessName) {
  57 + this.businessName = businessName;
  58 + }
  59 +
  60 + public Integer getBusinessCode() {
  61 + return businessCode;
  62 + }
  63 +
  64 + public void setBusinessCode(Integer businessCode) {
  65 + this.businessCode = businessCode;
  66 + }
  67 +
  68 + public Integer getUpCode() {
  69 + return upCode;
  70 + }
  71 +
  72 + public void setUpCode(Integer upCode) {
  73 + this.upCode = upCode;
  74 + }
  75 +
  76 + public String getDescriptions() {
  77 + return descriptions;
  78 + }
  79 +
  80 + public void setDescriptions(String descriptions) {
  81 + this.descriptions = descriptions;
  82 + }
  83 +}