12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091 |
- package com.kxs.adminap.enity;
- import java.io.Serializable;
- import java.util.Date;
- import com.fasterxml.jackson.annotation.JsonFormat;
- import jakarta.persistence.Column;
- import jakarta.persistence.Entity;
- import jakarta.persistence.GeneratedValue;
- import jakarta.persistence.GenerationType;
- import jakarta.persistence.Id;
- import jakarta.persistence.Table;
- @Entity
- @Table(name = "test_table")
- public class TestTable implements Serializable {
- @Id
- @GeneratedValue(strategy = GenerationType.IDENTITY)
- private Long id;
-
- @Column(name = "name")
- private String name;
- @Column(name = "sex")
- private Double sex;
- @Column(name = "create_date")
- private Date create_date;
- @Column(name = "is_ok")
- private Boolean is_ok;
- @Column(name = "contents")
- private String contents;
- // User的默认构造函数
- public TestTable() {
- super();
- }
- public Long getId() {
- return id;
- }
- public void setId(Long id) {
- this.id = id;
- }
- public String getName() {
- return name;
- }
- public void setName(String name) {
- this.name = name;
- }
- public Double getSex() {
- return sex;
- }
- public void setSex(Double sex) {
- this.sex = sex;
- }
- public Date getCreateDate() {
- return create_date;
- }
- public void setCreateDate(Date create_date) {
- this.create_date = create_date;
- }
- public Boolean getIsOk() {
- return is_ok;
- }
- public void setIsOk(Boolean is_ok) {
- this.is_ok = is_ok;
- }
- public String getContents() {
- return contents;
- }
- public void setContents(String contents) {
- this.contents = contents;
- }
- }
|