TestTable.java 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  1. package com.kxs.adminap.enity;
  2. import java.io.Serializable;
  3. import java.util.Date;
  4. import com.fasterxml.jackson.annotation.JsonFormat;
  5. import jakarta.persistence.Column;
  6. import jakarta.persistence.Entity;
  7. import jakarta.persistence.GeneratedValue;
  8. import jakarta.persistence.GenerationType;
  9. import jakarta.persistence.Id;
  10. import jakarta.persistence.Table;
  11. @Entity
  12. @Table(name = "test_table")
  13. public class TestTable implements Serializable {
  14. @Id
  15. @GeneratedValue(strategy = GenerationType.IDENTITY)
  16. private Long id;
  17. @Column(name = "name")
  18. private String name;
  19. @Column(name = "sex")
  20. private Double sex;
  21. @Column(name = "create_date")
  22. private Date create_date;
  23. @Column(name = "is_ok")
  24. private Boolean is_ok;
  25. @Column(name = "contents")
  26. private String contents;
  27. // User的默认构造函数
  28. public TestTable() {
  29. super();
  30. }
  31. public Long getId() {
  32. return id;
  33. }
  34. public void setId(Long id) {
  35. this.id = id;
  36. }
  37. public String getName() {
  38. return name;
  39. }
  40. public void setName(String name) {
  41. this.name = name;
  42. }
  43. public Double getSex() {
  44. return sex;
  45. }
  46. public void setSex(Double sex) {
  47. this.sex = sex;
  48. }
  49. public Date getCreateDate() {
  50. return create_date;
  51. }
  52. public void setCreateDate(Date create_date) {
  53. this.create_date = create_date;
  54. }
  55. public Boolean getIsOk() {
  56. return is_ok;
  57. }
  58. public void setIsOk(Boolean is_ok) {
  59. this.is_ok = is_ok;
  60. }
  61. public String getContents() {
  62. return contents;
  63. }
  64. public void setContents(String contents) {
  65. this.contents = contents;
  66. }
  67. }