TemplateConfig.java 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109
  1. package com.gitee.gen.entity;
  2. import java.util.Objects;
  3. /**
  4. * 模板表
  5. */
  6. public class TemplateConfig {
  7. private Integer id;
  8. private Integer groupId;
  9. private String groupName;
  10. /** 模板名称 */
  11. private String name;
  12. /** 文件名称 */
  13. private String fileName;
  14. /** 内容 */
  15. private String content;
  16. /** 是否删除,1:已删除,0:未删除 */
  17. private Integer isDeleted;
  18. public Integer getId() {
  19. return id;
  20. }
  21. public void setId(Integer id) {
  22. this.id = id;
  23. }
  24. public Integer getGroupId() {
  25. return groupId;
  26. }
  27. public void setGroupId(Integer groupId) {
  28. this.groupId = groupId;
  29. }
  30. public String getGroupName() {
  31. return groupName;
  32. }
  33. public void setGroupName(String groupName) {
  34. this.groupName = groupName;
  35. }
  36. public String getName() {
  37. return name;
  38. }
  39. public void setName(String name) {
  40. this.name = name;
  41. }
  42. public String getFileName() {
  43. return fileName;
  44. }
  45. public void setFileName(String fileName) {
  46. this.fileName = fileName;
  47. }
  48. public String getContent() {
  49. return content;
  50. }
  51. public void setContent(String content) {
  52. this.content = content;
  53. }
  54. public Integer getIsDeleted() {
  55. return isDeleted;
  56. }
  57. public void setIsDeleted(Integer isDeleted) {
  58. this.isDeleted = isDeleted;
  59. }
  60. @Override
  61. public boolean equals(Object o) {
  62. if (this == o) return true;
  63. if (o == null || getClass() != o.getClass()) return false;
  64. TemplateConfig that = (TemplateConfig) o;
  65. return Objects.equals(id, that.id) &&
  66. Objects.equals(groupId, that.groupId) &&
  67. Objects.equals(groupName, that.groupName) &&
  68. Objects.equals(name, that.name) &&
  69. Objects.equals(fileName, that.fileName) &&
  70. Objects.equals(content, that.content) &&
  71. Objects.equals(isDeleted, that.isDeleted);
  72. }
  73. @Override
  74. public int hashCode() {
  75. return Objects.hash(id, groupId, groupName, name, fileName, content, isDeleted);
  76. }
  77. @Override
  78. public String toString() {
  79. return "TemplateConfig{" +
  80. "id=" + id +
  81. ", groupId=" + groupId +
  82. ", groupName='" + groupName + '\'' +
  83. ", name='" + name + '\'' +
  84. ", fileName='" + fileName + '\'' +
  85. ", content='" + content + '\'' +
  86. ", isDeleted=" + isDeleted +
  87. '}';
  88. }
  89. }