migration changes

This commit is contained in:
Efstratios Giannopoulos 2024-05-08 10:25:44 +03:00
parent 62db01e4cf
commit 3c3a83bb58
9 changed files with 17 additions and 12 deletions

View File

@ -58,6 +58,11 @@
<artifactId>common-models</artifactId>
<version>0.0.14</version>
</dependency>
<dependency>
<groupId>gr.cite</groupId>
<artifactId>data-tools</artifactId>
<version>2.1.3</version>
</dependency>
<dependency>
<groupId>org.opencdmp</groupId>
<artifactId>file-transformer-base</artifactId>

View File

@ -312,7 +312,7 @@
<dependency>
<groupId>gr.cite</groupId>
<artifactId>data-tools</artifactId>
<version>2.1.2</version>
<version>2.1.3</version>
</dependency>
<dependency>
<groupId>gr.cite</groupId>

View File

@ -12,10 +12,10 @@ import org.opencdmp.commons.types.externalfetcher.ExternalFetcherApiSourceConfig
import org.opencdmp.commons.types.referencetype.ReferenceTypeDefinitionEntity;
import org.opencdmp.convention.ConventionService;
import org.opencdmp.data.*;
import org.opencdmp.model.Dmp;
import org.opencdmp.model.Reference;
import org.opencdmp.model.ReferenceType;
import org.opencdmp.model.dmp.Dmp;
import org.opencdmp.model.persist.descriptionreference.DescriptionReferenceDataPersist;
import org.opencdmp.model.reference.Reference;
import org.opencdmp.model.referencetype.ReferenceType;
import org.opencdmp.query.*;
import eu.old.eudat.data.dao.entities.DatasetDao;
import eu.old.eudat.data.entities.Dataset;

View File

@ -9,8 +9,8 @@ import org.opencdmp.commons.types.descriptiontemplate.fielddata.ReferenceTypeDat
import org.opencdmp.convention.ConventionService;
import org.opencdmp.data.DescriptionTemplateEntity;
import org.opencdmp.data.ReferenceTypeEntity;
import org.opencdmp.model.DescriptionTemplate;
import org.opencdmp.model.ReferenceType;
import org.opencdmp.model.descriptiontemplate.DescriptionTemplate;
import org.opencdmp.model.referencetype.ReferenceType;
import org.opencdmp.query.DescriptionTemplateQuery;
import org.opencdmp.query.ReferenceTypeQuery;
import gr.cite.tools.data.query.Ordering;

View File

@ -13,7 +13,7 @@ import org.opencdmp.data.DescriptionTemplateEntity;
import org.opencdmp.data.ReferenceEntity;
import org.opencdmp.data.ReferenceTypeEntity;
import org.opencdmp.data.converters.enums.DatabaseEnum;
import org.opencdmp.model.DescriptionTemplate;
import org.opencdmp.model.descriptiontemplate.DescriptionTemplate;
import org.opencdmp.query.DescriptionTemplateQuery;
import org.opencdmp.query.ReferenceTypeQuery;
import eu.old.eudat.logic.services.helpers.HelpersService;

View File

@ -8,7 +8,7 @@ import org.opencdmp.commons.types.dmpblueprint.*;
import org.opencdmp.convention.ConventionService;
import org.opencdmp.data.DescriptionTemplateEntity;
import org.opencdmp.data.DmpBlueprintEntity;
import org.opencdmp.model.DmpBlueprint;
import org.opencdmp.model.dmpblueprint.DmpBlueprint;
import org.opencdmp.query.DescriptionTemplateQuery;
import org.opencdmp.query.DmpBlueprintQuery;
import eu.old.eudat.logic.utilities.builders.XmlBuilder;
@ -60,7 +60,7 @@ public class DmpBlueprintXmlMigrationService {
int page = 0;
List<DmpBlueprintEntity> items;
List<DescriptionTemplateEntity> descriptionTemplateEntities = this.queryFactory.query(DescriptionTemplateQuery.class).collectAs(new BaseFieldSet().ensure(org.opencdmp.model.DescriptionTemplate._id).ensure(org.opencdmp.model.DescriptionTemplate._groupId));
List<DescriptionTemplateEntity> descriptionTemplateEntities = this.queryFactory.query(DescriptionTemplateQuery.class).collectAs(new BaseFieldSet().ensure(org.opencdmp.model.descriptiontemplate.DescriptionTemplate._id).ensure(org.opencdmp.model.descriptiontemplate.DescriptionTemplate._groupId));
Map<UUID, UUID> descriptionTemplateGroupMap = new HashMap<>();
for (DescriptionTemplateEntity descriptionTemplateEntity: descriptionTemplateEntities) {
descriptionTemplateGroupMap.put(descriptionTemplateEntity.getId(), descriptionTemplateEntity.getGroupId());

View File

@ -14,7 +14,7 @@ import org.opencdmp.commons.types.reference.DefinitionEntity;
import org.opencdmp.commons.types.reference.FieldEntity;
import org.opencdmp.convention.ConventionService;
import org.opencdmp.data.*;
import org.opencdmp.model.DmpBlueprint;
import org.opencdmp.model.dmpblueprint.DmpBlueprint;
import org.opencdmp.query.DmpBlueprintQuery;
import eu.old.eudat.data.dao.entities.DMPDao;
import eu.old.eudat.data.entities.*;

View File

@ -8,7 +8,7 @@ import org.opencdmp.commons.enums.ReferenceSourceType;
import org.opencdmp.commons.types.user.AdditionalInfoEntity;
import org.opencdmp.data.ReferenceEntity;
import org.opencdmp.data.UserEntity;
import org.opencdmp.model.User;
import org.opencdmp.model.user.User;
import org.opencdmp.query.ReferenceQuery;
import org.opencdmp.query.UserQuery;
import eu.old.eudat.data.dao.entities.UserInfoDao;

View File

@ -113,7 +113,7 @@ public class MigrationController {
// this.dmpMigrationService.migrate();
// this.dmpDatasetProfileMigrationService.migrate();
// this.dmpUserMigrationService.migrate();
//
//Description
this.datasetMigrationService.migrate();
this.datasetReferenceMigrationService.migrateDatasetReferences();