TenantModel.java 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109
  1. package com.yihu.hos.tenant.model;
  2. import javax.persistence.Column;
  3. import javax.persistence.Entity;
  4. import javax.persistence.Table;
  5. import java.util.Date;
  6. /**
  7. * 租户表
  8. * @author HZY
  9. * @vsrsion 1.0
  10. * Created at 2016/12/2.
  11. */
  12. @Entity
  13. @Table(name = "tenant")
  14. public class TenantModel extends IdModel{
  15. private String code;
  16. private String name;
  17. private String password;
  18. private String schema;
  19. private Date created;
  20. private Integer createdUnix;
  21. private Date updated;
  22. private Integer updatedUnix;
  23. private Integer valid;
  24. @Column(name="code")
  25. public String getCode() {
  26. return code;
  27. }
  28. public void setCode(String code) {
  29. this.code = code;
  30. }
  31. @Column(name="name")
  32. public String getName() {
  33. return name;
  34. }
  35. public void setName(String name) {
  36. this.name = name;
  37. }
  38. @Column(name="password")
  39. public String getPassword() {
  40. return password;
  41. }
  42. public void setPassword(String password) {
  43. this.password = password;
  44. }
  45. @Column(name="schema")
  46. public String getSchema() {
  47. return schema;
  48. }
  49. public void setSchema(String schema) {
  50. this.schema = schema;
  51. }
  52. @Column(name="created")
  53. public Date getCreated() {
  54. return created;
  55. }
  56. public void setCreated(Date created) {
  57. this.created = created;
  58. }
  59. @Column(name="created_unix")
  60. public Integer getCreatedUnix() {
  61. return createdUnix;
  62. }
  63. public void setCreatedUnix(Integer createdUnix) {
  64. this.createdUnix = createdUnix;
  65. }
  66. @Column(name="updated")
  67. public Date getUpdated() {
  68. return updated;
  69. }
  70. public void setUpdated(Date updated) {
  71. this.updated = updated;
  72. }
  73. @Column(name="updated_unix")
  74. public Integer getUpdatedUnix() {
  75. return updatedUnix;
  76. }
  77. public void setUpdatedUnix(Integer updatedUnix) {
  78. this.updatedUnix = updatedUnix;
  79. }
  80. @Column(name="valid")
  81. public Integer getValid() {
  82. return valid;
  83. }
  84. public void setValid(Integer valid) {
  85. this.valid = valid;
  86. }
  87. }