Skip to content

Commit a9bbc7e

Browse files
authored
Merge branch 'development' into fix/sample-origin-database-mapping
2 parents 08ceca3 + 67c75b4 commit a9bbc7e

File tree

5 files changed

+11
-27
lines changed

5 files changed

+11
-27
lines changed

project-management/src/main/java/life/qbic/projectmanagement/application/ProjectOverview.java

Lines changed: 2 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,9 @@
1111
import java.time.Instant;
1212
import java.util.ArrayList;
1313
import java.util.Collection;
14-
import java.util.Objects;
1514
import life.qbic.projectmanagement.domain.model.project.Project;
1615
import life.qbic.projectmanagement.domain.model.project.ProjectId;
17-
import org.springframework.data.annotation.Immutable;
16+
import org.hibernate.annotations.Immutable;
1817

1918
/**
2019
* A limited view of the more complex {@link Project}.
@@ -23,6 +22,7 @@
2322
*/
2423
//Views are aggregates which cannot be changed
2524
@Immutable
25+
@org.springframework.data.annotation.Immutable
2626
@Entity
2727
@Table(name = "project_overview")
2828
public class ProjectOverview {
@@ -54,7 +54,6 @@ public class ProjectOverview {
5454
@Column(name = "amountPxpMeasurements")
5555
private String pxpMeasurementCount;
5656

57-
@Column(name = "userName")
5857
@ElementCollection(targetClass = String.class, fetch = FetchType.EAGER)
5958
@CollectionTable(name = "project_usernames", joinColumns = @JoinColumn(name = "projectId"))
6059
private Collection<String> collaboratorUserNames = new ArrayList<>();
@@ -63,26 +62,6 @@ protected ProjectOverview() {
6362

6463
}
6564

66-
public ProjectOverview(ProjectId id, String projectTitle, String projectCode,
67-
Instant lastModified, String principalInvestigatorName, String projectManagerName,
68-
String projectResponsibleName,
69-
String ngsMeasurementCount, String pxpMeasurementCount,
70-
Collection<String> usernames) {
71-
this.id = Objects.requireNonNull(id, "project Id cannot be null");
72-
this.projectTitle = Objects.requireNonNull(projectTitle, "projectTitle cannot be null");
73-
this.projectCode = Objects.requireNonNull(projectCode, "project code cannot be null");
74-
this.lastModified = Objects.requireNonNull(lastModified, "lastModified date cannot be null");
75-
this.principalInvestigatorName = Objects.requireNonNull(principalInvestigatorName,
76-
"principal investigator name cannot be null");
77-
this.projectManagerName = Objects.requireNonNull(projectManagerName,
78-
"project manager name cannot be null");
79-
this.projectResponsibleName = projectResponsibleName;
80-
this.ngsMeasurementCount = ngsMeasurementCount;
81-
this.pxpMeasurementCount = pxpMeasurementCount;
82-
this.collaboratorUserNames = Objects.requireNonNull(usernames,
83-
"The collaborator user names cannot be null");
84-
}
85-
8665
public ProjectId projectId() {
8766
return id;
8867
}

project-management/src/main/java/life/qbic/projectmanagement/domain/model/project/purchase/Offer.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ public class Offer {
3131
private String fileName;
3232

3333
@Lob
34-
@Column(name = "file_content", columnDefinition="BLOB")
34+
@Column(name = "file_content", columnDefinition = "LONGBLOB")
3535
@Basic(fetch=LAZY)
3636
private byte[] fileContent;
3737

project-management/src/main/java/life/qbic/projectmanagement/domain/model/sample/qualitycontrol/QualityControlUpload.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ public class QualityControlUpload {
3535
private ExperimentId experimentId;
3636
private String fileName;
3737
@Lob
38-
@Column(name = "file_content", columnDefinition = "BLOB")
38+
@Column(name = "file_content", columnDefinition = "LONGBLOB")
3939
@Basic(fetch = LAZY)
4040
private byte[] fileContent;
4141

sql/modify-ontology-table-engine.sql

Lines changed: 0 additions & 2 deletions
This file was deleted.

sql/modify-ontology-table.sql

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
ALTER TABLE ontology_classes
2+
ENGINE = MyISAM;
3+
ALTER TABLE ontology_classes CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci
4+
ALTER TABLE ontology_classes
5+
ADD FULLTEXT `idx_fulltext_name` (name);
6+
ALTER TABLE ontology_classes
7+
ADD FULLTEXT `idx_fulltext_label` (label);

0 commit comments

Comments
 (0)