FlywaySchemaHistory.java 6.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297
  1. package com.qxgmat.data.dao.entity;
  2. import java.io.Serializable;
  3. import java.util.Date;
  4. import javax.persistence.*;
  5. @Table(name = "flyway_schema_history")
  6. public class FlywaySchemaHistory implements Serializable {
  7. @Id
  8. @Column(name = "`installed_rank`")
  9. private Integer installedRank;
  10. @Column(name = "`version`")
  11. private String version;
  12. @Column(name = "`description`")
  13. private String description;
  14. @Column(name = "`type`")
  15. private String type;
  16. @Column(name = "`script`")
  17. private String script;
  18. @Column(name = "`checksum`")
  19. private Integer checksum;
  20. @Column(name = "`installed_by`")
  21. private String installedBy;
  22. @Column(name = "`installed_on`")
  23. private Date installedOn;
  24. @Column(name = "`execution_time`")
  25. private Integer executionTime;
  26. @Column(name = "`success`")
  27. private Integer success;
  28. private static final long serialVersionUID = 1L;
  29. /**
  30. * @return installed_rank
  31. */
  32. public Integer getInstalledRank() {
  33. return installedRank;
  34. }
  35. /**
  36. * @param installedRank
  37. */
  38. public void setInstalledRank(Integer installedRank) {
  39. this.installedRank = installedRank;
  40. }
  41. /**
  42. * @return version
  43. */
  44. public String getVersion() {
  45. return version;
  46. }
  47. /**
  48. * @param version
  49. */
  50. public void setVersion(String version) {
  51. this.version = version;
  52. }
  53. /**
  54. * @return description
  55. */
  56. public String getDescription() {
  57. return description;
  58. }
  59. /**
  60. * @param description
  61. */
  62. public void setDescription(String description) {
  63. this.description = description;
  64. }
  65. /**
  66. * @return type
  67. */
  68. public String getType() {
  69. return type;
  70. }
  71. /**
  72. * @param type
  73. */
  74. public void setType(String type) {
  75. this.type = type;
  76. }
  77. /**
  78. * @return script
  79. */
  80. public String getScript() {
  81. return script;
  82. }
  83. /**
  84. * @param script
  85. */
  86. public void setScript(String script) {
  87. this.script = script;
  88. }
  89. /**
  90. * @return checksum
  91. */
  92. public Integer getChecksum() {
  93. return checksum;
  94. }
  95. /**
  96. * @param checksum
  97. */
  98. public void setChecksum(Integer checksum) {
  99. this.checksum = checksum;
  100. }
  101. /**
  102. * @return installed_by
  103. */
  104. public String getInstalledBy() {
  105. return installedBy;
  106. }
  107. /**
  108. * @param installedBy
  109. */
  110. public void setInstalledBy(String installedBy) {
  111. this.installedBy = installedBy;
  112. }
  113. /**
  114. * @return installed_on
  115. */
  116. public Date getInstalledOn() {
  117. return installedOn;
  118. }
  119. /**
  120. * @param installedOn
  121. */
  122. public void setInstalledOn(Date installedOn) {
  123. this.installedOn = installedOn;
  124. }
  125. /**
  126. * @return execution_time
  127. */
  128. public Integer getExecutionTime() {
  129. return executionTime;
  130. }
  131. /**
  132. * @param executionTime
  133. */
  134. public void setExecutionTime(Integer executionTime) {
  135. this.executionTime = executionTime;
  136. }
  137. /**
  138. * @return success
  139. */
  140. public Integer getSuccess() {
  141. return success;
  142. }
  143. /**
  144. * @param success
  145. */
  146. public void setSuccess(Integer success) {
  147. this.success = success;
  148. }
  149. @Override
  150. public String toString() {
  151. StringBuilder sb = new StringBuilder();
  152. sb.append(getClass().getSimpleName());
  153. sb.append(" [");
  154. sb.append("Hash = ").append(hashCode());
  155. sb.append(", installedRank=").append(installedRank);
  156. sb.append(", version=").append(version);
  157. sb.append(", description=").append(description);
  158. sb.append(", type=").append(type);
  159. sb.append(", script=").append(script);
  160. sb.append(", checksum=").append(checksum);
  161. sb.append(", installedBy=").append(installedBy);
  162. sb.append(", installedOn=").append(installedOn);
  163. sb.append(", executionTime=").append(executionTime);
  164. sb.append(", success=").append(success);
  165. sb.append("]");
  166. return sb.toString();
  167. }
  168. public static FlywaySchemaHistory.Builder builder() {
  169. return new FlywaySchemaHistory.Builder();
  170. }
  171. public static class Builder {
  172. private FlywaySchemaHistory obj;
  173. public Builder() {
  174. this.obj = new FlywaySchemaHistory();
  175. }
  176. /**
  177. * @param installedRank
  178. */
  179. public Builder installedRank(Integer installedRank) {
  180. obj.setInstalledRank(installedRank);
  181. return this;
  182. }
  183. /**
  184. * @param version
  185. */
  186. public Builder version(String version) {
  187. obj.setVersion(version);
  188. return this;
  189. }
  190. /**
  191. * @param description
  192. */
  193. public Builder description(String description) {
  194. obj.setDescription(description);
  195. return this;
  196. }
  197. /**
  198. * @param type
  199. */
  200. public Builder type(String type) {
  201. obj.setType(type);
  202. return this;
  203. }
  204. /**
  205. * @param script
  206. */
  207. public Builder script(String script) {
  208. obj.setScript(script);
  209. return this;
  210. }
  211. /**
  212. * @param checksum
  213. */
  214. public Builder checksum(Integer checksum) {
  215. obj.setChecksum(checksum);
  216. return this;
  217. }
  218. /**
  219. * @param installedBy
  220. */
  221. public Builder installedBy(String installedBy) {
  222. obj.setInstalledBy(installedBy);
  223. return this;
  224. }
  225. /**
  226. * @param installedOn
  227. */
  228. public Builder installedOn(Date installedOn) {
  229. obj.setInstalledOn(installedOn);
  230. return this;
  231. }
  232. /**
  233. * @param executionTime
  234. */
  235. public Builder executionTime(Integer executionTime) {
  236. obj.setExecutionTime(executionTime);
  237. return this;
  238. }
  239. /**
  240. * @param success
  241. */
  242. public Builder success(Integer success) {
  243. obj.setSuccess(success);
  244. return this;
  245. }
  246. public FlywaySchemaHistory build() {
  247. return this.obj;
  248. }
  249. }
  250. }