Skip to content

Commit

Permalink
Remove state of workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
markusweigelt committed Jun 26, 2023
1 parent 540ed9d commit 0c7f4f6
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 26 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,6 @@ public class OCRWorkflow extends BaseBean {
@Column(name = "file")
private String file;

@Column(name = "active")
private Boolean active = true;

@ManyToOne
@JoinColumn(name = "client_id", foreignKey = @ForeignKey(name = "FK_ocrworkflow_client_id"))
private Client client;
Expand All @@ -53,27 +50,6 @@ public void setFile(String file) {
this.file = file;
}

/**
* Check if ocr workflow is active.
*
* @return true or false
*/
public Boolean isActive() {
if (Objects.isNull(this.active)) {
this.active = true;
}
return this.active;
}

/**
* Set ocr workflow as active.
*
* @param active as boolean
*/
public void setActive(boolean active) {
this.active = active;
}


/**
* Get client.
Expand Down Expand Up @@ -110,6 +86,6 @@ public boolean equals(Object object) {

@Override
public int hashCode() {
return Objects.hash(title, file, active);
return Objects.hash(title, file);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ CREATE TABLE IF NOT EXISTS ocrworkflow (
id INT(10) NOT NULL AUTO_INCREMENT,
title varchar(255) NOT NULL,
file varchar(255) NOT NULL,
active tinyint(1) DEFAULT NULL,
client_id INT(10) NOT NULL,
PRIMARY KEY(id)
) DEFAULT CHARACTER SET = utf8mb4
Expand Down

0 comments on commit 0c7f4f6

Please sign in to comment.