diff --git a/pom.xml b/pom.xml
index 63413191..d7ac70b1 100644
--- a/pom.xml
+++ b/pom.xml
@@ -5,7 +5,7 @@
no.uio.ifi
trackfind
- 2.8.0
+ 2.8.1
jar
trackfind
diff --git a/src/main/java/no/uio/ifi/trackfind/backend/data/providers/AbstractDataProvider.java b/src/main/java/no/uio/ifi/trackfind/backend/data/providers/AbstractDataProvider.java
index b8b02a2f..662ff512 100644
--- a/src/main/java/no/uio/ifi/trackfind/backend/data/providers/AbstractDataProvider.java
+++ b/src/main/java/no/uio/ifi/trackfind/backend/data/providers/AbstractDataProvider.java
@@ -174,7 +174,6 @@ protected TfVersion createVersion(String hubName, Operation operation, boolean c
newVersion.setUser((TfUser) authentication.getPrincipal());
}
newVersion.setTime(new Date());
- newVersion.setValidated(false);
newVersion.setHub(hub);
if (Operation.CURATION.equals(operation) && currentVersionOptional.isPresent()) {
newVersion.setBasedOn(currentVersionOptional.get());
diff --git a/src/main/java/no/uio/ifi/trackfind/backend/pojo/TfVersion.java b/src/main/java/no/uio/ifi/trackfind/backend/pojo/TfVersion.java
index f7df99e7..3e2af39d 100644
--- a/src/main/java/no/uio/ifi/trackfind/backend/pojo/TfVersion.java
+++ b/src/main/java/no/uio/ifi/trackfind/backend/pojo/TfVersion.java
@@ -45,8 +45,8 @@ public class TfVersion implements Serializable {
@Column(name = "time", nullable = false)
private Date time;
- @Column(name = "validated", nullable = false)
- private Boolean validated;
+ @Column(name = "validation")
+ private Boolean validation;
@ManyToOne(fetch = FetchType.EAGER)
@JoinColumn(name = "hub_id", referencedColumnName = "id")
diff --git a/src/main/java/no/uio/ifi/trackfind/backend/services/impl/EPICOValidationService.java b/src/main/java/no/uio/ifi/trackfind/backend/services/impl/EPICOValidationService.java
index ce02b992..f7941e67 100644
--- a/src/main/java/no/uio/ifi/trackfind/backend/services/impl/EPICOValidationService.java
+++ b/src/main/java/no/uio/ifi/trackfind/backend/services/impl/EPICOValidationService.java
@@ -3,6 +3,8 @@
import com.google.gson.Gson;
import lombok.extern.slf4j.Slf4j;
import no.uio.ifi.trackfind.backend.pojo.TfObjectType;
+import no.uio.ifi.trackfind.backend.pojo.TfVersion;
+import no.uio.ifi.trackfind.backend.repositories.VersionRepository;
import no.uio.ifi.trackfind.backend.services.ValidationService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.jdbc.core.JdbcTemplate;
@@ -30,24 +32,37 @@ public class EPICOValidationService implements ValidationService {
private JdbcTemplate jdbcTemplate;
private MetamodelService metamodelService;
+ private VersionRepository versionRepository;
private RestTemplate restTemplate;
private Gson gson;
/**
* {@inheritDoc}
*/
+ @SuppressWarnings("unchecked")
@Override
- public String validate(String repository, String hub) {
+ public String validate(String repository, String hubName) {
Map hubContent = new HashMap<>();
- Collection objectTypes = metamodelService.getObjectTypes(repository, hub);
+ Collection objectTypes = metamodelService.getObjectTypes(repository, hubName);
for (TfObjectType objectType : objectTypes) {
List