|
- package com.example.webapi.entity;
-
- import io.swagger.annotations.ApiModel;
- import io.swagger.annotations.ApiModelProperty;
- import lombok.Data;
- import javax.persistence.*;
-
- @Data
- @Entity
- @Table(name = "运输公司")
- @ApiModel(description = "运输公司实体")
- public class TransportCompany {
- @Id
- @Column(name = "编号")
- @ApiModelProperty(value = "公司ID", example = "1", notes = "主键,自动生成")
- private Integer id;
-
- @Column(name = "公司名称", length = 100)
- @ApiModelProperty(value = "公司名称", example = "福泉物流")
- private String name;
-
- @Column(name = "备注", length = 300)
- @ApiModelProperty(value = "备注", example = "长期合作伙伴")
- private String remark;
- }
|