Skip to content

Commit

Permalink
[AAE-15727] fix styles
Browse files Browse the repository at this point in the history
  • Loading branch information
indrayanganguly committed Aug 11, 2023
1 parent 4b1b879 commit 073ddc5
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,13 @@
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonInclude;
import jakarta.persistence.Column;
import jakarta.persistence.Entity;
import jakarta.persistence.GeneratedValue;
import jakarta.persistence.Id;
import jakarta.persistence.ManyToMany;
import jakarta.persistence.Table;
import jakarta.persistence.UniqueConstraint;
import jakarta.persistence.Column;
import java.util.HashSet;
import java.util.Set;
import org.activiti.cloud.modeling.api.ModelValidationErrorProducer;
Expand All @@ -52,10 +52,10 @@ public class ProjectEntity extends AuditableEntity<String> implements Project<St
@GenericGenerator(name = "system-uuid", strategy = "uuid2")
private String id;

@Column(name ="tech_name", nullable = false)
@Column(name = "tech_name", nullable = false)
private String technicalName;

@Column(name ="disp_name", nullable = false)
@Column(name = "disp_name", nullable = false)
private String displayName;

private String description;
Expand Down Expand Up @@ -110,10 +110,14 @@ public void setTechnicalName(String technicalName) {
}

@Override
public String getDisplayName() { return displayName; }
public String getDisplayName() {
return displayName;
}

@Override
public void setDisplayName(String displayName) { this.displayName = displayName; }
public void setDisplayName(String displayName) {
this.displayName = displayName;
}

@Override
public String getVersion() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,3 @@

ALTER TABLE project
ALTER COLUMN tech_name SET NOT NULL;



Original file line number Diff line number Diff line change
Expand Up @@ -548,7 +548,10 @@ private ProjectHolder getProjectHolderFromZipStream(ZipStream stream, String nam
@Override
public Project replaceProjectContentWithProvidedModelsInFile(Project project, InputStream inputStream)
throws IOException {
ProjectHolder projectHolder = getProjectHolderFromZipStream(ZipStream.of(inputStream), project.getTechnicalName());
ProjectHolder projectHolder = getProjectHolderFromZipStream(
ZipStream.of(inputStream),
project.getTechnicalName()
);

if (projectHolder.getProjectMetadata().isEmpty()) {
throw new ImportProjectException("No valid project entry found to import");
Expand Down

0 comments on commit 073ddc5

Please sign in to comment.