ThinkChat2.0新版上线,更智能更精彩,支持会话、画图、阅读、搜索等,送10W Token,即刻开启你的AI之旅 广告
~~~ package net.youworker.domain; import lombok.Data; import javax.persistence.*; /** * 1.实体类和表的映射关系 * @Entity * @Table * * 2.类中属性和表中字段的映射关系 * @Id * @GeneratedValue * @Column * * @author: hcf * @qq: 46914685 * @email: 46914685@qq.com * @date: 2020-01-06 22:08 */ @Entity @Table(name = "cst_customer") @Data public class Customer { /** * 主键 */ @Id @GeneratedValue(strategy = GenerationType.IDENTITY) @Column(name = "cust_id") private Long custId; /** * 地址 */ @Column(name = "cust_address") private String custAddress; /** * 教育 */ @Column(name = "cust_industry") private String custIndustry; /** * 等级 */ @Column(name = "cust_level") private String custLevel; /** * 名字 */ @Column(name = "cust_name") private String custName; /** * 电话 */ @Column(name = "cust_phone") private String custPhone; /** * 来源 */ @Column(name = "cust_source") private String custSource; } ~~~