builder自定义写法,jpa注入,表自动生成 package com.xj.hhjk.szsw.entity; import com.xj.hhjk.common.base.Entity; import java.util.Date; import javax.persistence.Column; import javax.persistence.Entity; import javax.persistence.GeneratedValue; import javax.persistence.GenerationType; import javax.persistence.Id; import org.hibernate.annotations.Proxy; import org.hibernate.annotations.Table; @Entity @Table(appliesTo = "shui_gong_neng_qu_da_biao_lv_detail", comment = "表备注") @Proxy(lazy = false) public class ShuiGongNengQuDaBiaoLvDetail extends Entity { @Id @GeneratedValue(strategy = GenerationType.IDENTITY) private Integer id; @Column(columnDefinition = "int(11) comment '父类ID'") private Integer parentId; @Column(columnDefinition = "varchar(5) comment '达标等级'") private String standardLevel; @Column(columnDefinition = "double(11,2) comment '氨氮'") private Double
java pojobean javaBean builder的写法 jpa字段写法,表自动生成
于 2023-04-20 18:14:21 首次发布