123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297 |
- package com.qxgmat.data.dao.entity;
- import java.io.Serializable;
- import java.util.Date;
- import javax.persistence.*;
- @Table(name = "flyway_schema_history")
- public class FlywaySchemaHistory implements Serializable {
- @Id
- @Column(name = "`installed_rank`")
- private Integer installedRank;
- @Column(name = "`version`")
- private String version;
- @Column(name = "`description`")
- private String description;
- @Column(name = "`type`")
- private String type;
- @Column(name = "`script`")
- private String script;
- @Column(name = "`checksum`")
- private Integer checksum;
- @Column(name = "`installed_by`")
- private String installedBy;
- @Column(name = "`installed_on`")
- private Date installedOn;
- @Column(name = "`execution_time`")
- private Integer executionTime;
- @Column(name = "`success`")
- private Integer success;
- private static final long serialVersionUID = 1L;
- /**
- * @return installed_rank
- */
- public Integer getInstalledRank() {
- return installedRank;
- }
- /**
- * @param installedRank
- */
- public void setInstalledRank(Integer installedRank) {
- this.installedRank = installedRank;
- }
- /**
- * @return version
- */
- public String getVersion() {
- return version;
- }
- /**
- * @param version
- */
- public void setVersion(String version) {
- this.version = version;
- }
- /**
- * @return description
- */
- public String getDescription() {
- return description;
- }
- /**
- * @param description
- */
- public void setDescription(String description) {
- this.description = description;
- }
- /**
- * @return type
- */
- public String getType() {
- return type;
- }
- /**
- * @param type
- */
- public void setType(String type) {
- this.type = type;
- }
- /**
- * @return script
- */
- public String getScript() {
- return script;
- }
- /**
- * @param script
- */
- public void setScript(String script) {
- this.script = script;
- }
- /**
- * @return checksum
- */
- public Integer getChecksum() {
- return checksum;
- }
- /**
- * @param checksum
- */
- public void setChecksum(Integer checksum) {
- this.checksum = checksum;
- }
- /**
- * @return installed_by
- */
- public String getInstalledBy() {
- return installedBy;
- }
- /**
- * @param installedBy
- */
- public void setInstalledBy(String installedBy) {
- this.installedBy = installedBy;
- }
- /**
- * @return installed_on
- */
- public Date getInstalledOn() {
- return installedOn;
- }
- /**
- * @param installedOn
- */
- public void setInstalledOn(Date installedOn) {
- this.installedOn = installedOn;
- }
- /**
- * @return execution_time
- */
- public Integer getExecutionTime() {
- return executionTime;
- }
- /**
- * @param executionTime
- */
- public void setExecutionTime(Integer executionTime) {
- this.executionTime = executionTime;
- }
- /**
- * @return success
- */
- public Integer getSuccess() {
- return success;
- }
- /**
- * @param success
- */
- public void setSuccess(Integer success) {
- this.success = success;
- }
- @Override
- public String toString() {
- StringBuilder sb = new StringBuilder();
- sb.append(getClass().getSimpleName());
- sb.append(" [");
- sb.append("Hash = ").append(hashCode());
- sb.append(", installedRank=").append(installedRank);
- sb.append(", version=").append(version);
- sb.append(", description=").append(description);
- sb.append(", type=").append(type);
- sb.append(", script=").append(script);
- sb.append(", checksum=").append(checksum);
- sb.append(", installedBy=").append(installedBy);
- sb.append(", installedOn=").append(installedOn);
- sb.append(", executionTime=").append(executionTime);
- sb.append(", success=").append(success);
- sb.append("]");
- return sb.toString();
- }
- public static FlywaySchemaHistory.Builder builder() {
- return new FlywaySchemaHistory.Builder();
- }
- public static class Builder {
- private FlywaySchemaHistory obj;
- public Builder() {
- this.obj = new FlywaySchemaHistory();
- }
- /**
- * @param installedRank
- */
- public Builder installedRank(Integer installedRank) {
- obj.setInstalledRank(installedRank);
- return this;
- }
- /**
- * @param version
- */
- public Builder version(String version) {
- obj.setVersion(version);
- return this;
- }
- /**
- * @param description
- */
- public Builder description(String description) {
- obj.setDescription(description);
- return this;
- }
- /**
- * @param type
- */
- public Builder type(String type) {
- obj.setType(type);
- return this;
- }
- /**
- * @param script
- */
- public Builder script(String script) {
- obj.setScript(script);
- return this;
- }
- /**
- * @param checksum
- */
- public Builder checksum(Integer checksum) {
- obj.setChecksum(checksum);
- return this;
- }
- /**
- * @param installedBy
- */
- public Builder installedBy(String installedBy) {
- obj.setInstalledBy(installedBy);
- return this;
- }
- /**
- * @param installedOn
- */
- public Builder installedOn(Date installedOn) {
- obj.setInstalledOn(installedOn);
- return this;
- }
- /**
- * @param executionTime
- */
- public Builder executionTime(Integer executionTime) {
- obj.setExecutionTime(executionTime);
- return this;
- }
- /**
- * @param success
- */
- public Builder success(Integer success) {
- obj.setSuccess(success);
- return this;
- }
- public FlywaySchemaHistory build() {
- return this.obj;
- }
- }
- }
|