migration changes
This commit is contained in:
parent
62db01e4cf
commit
3c3a83bb58
|
@ -58,6 +58,11 @@
|
||||||
<artifactId>common-models</artifactId>
|
<artifactId>common-models</artifactId>
|
||||||
<version>0.0.14</version>
|
<version>0.0.14</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>gr.cite</groupId>
|
||||||
|
<artifactId>data-tools</artifactId>
|
||||||
|
<version>2.1.3</version>
|
||||||
|
</dependency>
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.opencdmp</groupId>
|
<groupId>org.opencdmp</groupId>
|
||||||
<artifactId>file-transformer-base</artifactId>
|
<artifactId>file-transformer-base</artifactId>
|
||||||
|
|
|
@ -312,7 +312,7 @@
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>gr.cite</groupId>
|
<groupId>gr.cite</groupId>
|
||||||
<artifactId>data-tools</artifactId>
|
<artifactId>data-tools</artifactId>
|
||||||
<version>2.1.2</version>
|
<version>2.1.3</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>gr.cite</groupId>
|
<groupId>gr.cite</groupId>
|
||||||
|
|
|
@ -12,10 +12,10 @@ import org.opencdmp.commons.types.externalfetcher.ExternalFetcherApiSourceConfig
|
||||||
import org.opencdmp.commons.types.referencetype.ReferenceTypeDefinitionEntity;
|
import org.opencdmp.commons.types.referencetype.ReferenceTypeDefinitionEntity;
|
||||||
import org.opencdmp.convention.ConventionService;
|
import org.opencdmp.convention.ConventionService;
|
||||||
import org.opencdmp.data.*;
|
import org.opencdmp.data.*;
|
||||||
import org.opencdmp.model.Dmp;
|
import org.opencdmp.model.dmp.Dmp;
|
||||||
import org.opencdmp.model.Reference;
|
|
||||||
import org.opencdmp.model.ReferenceType;
|
|
||||||
import org.opencdmp.model.persist.descriptionreference.DescriptionReferenceDataPersist;
|
import org.opencdmp.model.persist.descriptionreference.DescriptionReferenceDataPersist;
|
||||||
|
import org.opencdmp.model.reference.Reference;
|
||||||
|
import org.opencdmp.model.referencetype.ReferenceType;
|
||||||
import org.opencdmp.query.*;
|
import org.opencdmp.query.*;
|
||||||
import eu.old.eudat.data.dao.entities.DatasetDao;
|
import eu.old.eudat.data.dao.entities.DatasetDao;
|
||||||
import eu.old.eudat.data.entities.Dataset;
|
import eu.old.eudat.data.entities.Dataset;
|
||||||
|
|
|
@ -9,8 +9,8 @@ import org.opencdmp.commons.types.descriptiontemplate.fielddata.ReferenceTypeDat
|
||||||
import org.opencdmp.convention.ConventionService;
|
import org.opencdmp.convention.ConventionService;
|
||||||
import org.opencdmp.data.DescriptionTemplateEntity;
|
import org.opencdmp.data.DescriptionTemplateEntity;
|
||||||
import org.opencdmp.data.ReferenceTypeEntity;
|
import org.opencdmp.data.ReferenceTypeEntity;
|
||||||
import org.opencdmp.model.DescriptionTemplate;
|
import org.opencdmp.model.descriptiontemplate.DescriptionTemplate;
|
||||||
import org.opencdmp.model.ReferenceType;
|
import org.opencdmp.model.referencetype.ReferenceType;
|
||||||
import org.opencdmp.query.DescriptionTemplateQuery;
|
import org.opencdmp.query.DescriptionTemplateQuery;
|
||||||
import org.opencdmp.query.ReferenceTypeQuery;
|
import org.opencdmp.query.ReferenceTypeQuery;
|
||||||
import gr.cite.tools.data.query.Ordering;
|
import gr.cite.tools.data.query.Ordering;
|
||||||
|
|
|
@ -13,7 +13,7 @@ import org.opencdmp.data.DescriptionTemplateEntity;
|
||||||
import org.opencdmp.data.ReferenceEntity;
|
import org.opencdmp.data.ReferenceEntity;
|
||||||
import org.opencdmp.data.ReferenceTypeEntity;
|
import org.opencdmp.data.ReferenceTypeEntity;
|
||||||
import org.opencdmp.data.converters.enums.DatabaseEnum;
|
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.DescriptionTemplateQuery;
|
||||||
import org.opencdmp.query.ReferenceTypeQuery;
|
import org.opencdmp.query.ReferenceTypeQuery;
|
||||||
import eu.old.eudat.logic.services.helpers.HelpersService;
|
import eu.old.eudat.logic.services.helpers.HelpersService;
|
||||||
|
|
|
@ -8,7 +8,7 @@ import org.opencdmp.commons.types.dmpblueprint.*;
|
||||||
import org.opencdmp.convention.ConventionService;
|
import org.opencdmp.convention.ConventionService;
|
||||||
import org.opencdmp.data.DescriptionTemplateEntity;
|
import org.opencdmp.data.DescriptionTemplateEntity;
|
||||||
import org.opencdmp.data.DmpBlueprintEntity;
|
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.DescriptionTemplateQuery;
|
||||||
import org.opencdmp.query.DmpBlueprintQuery;
|
import org.opencdmp.query.DmpBlueprintQuery;
|
||||||
import eu.old.eudat.logic.utilities.builders.XmlBuilder;
|
import eu.old.eudat.logic.utilities.builders.XmlBuilder;
|
||||||
|
@ -60,7 +60,7 @@ public class DmpBlueprintXmlMigrationService {
|
||||||
int page = 0;
|
int page = 0;
|
||||||
|
|
||||||
List<DmpBlueprintEntity> items;
|
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<>();
|
Map<UUID, UUID> descriptionTemplateGroupMap = new HashMap<>();
|
||||||
for (DescriptionTemplateEntity descriptionTemplateEntity: descriptionTemplateEntities) {
|
for (DescriptionTemplateEntity descriptionTemplateEntity: descriptionTemplateEntities) {
|
||||||
descriptionTemplateGroupMap.put(descriptionTemplateEntity.getId(), descriptionTemplateEntity.getGroupId());
|
descriptionTemplateGroupMap.put(descriptionTemplateEntity.getId(), descriptionTemplateEntity.getGroupId());
|
||||||
|
|
|
@ -14,7 +14,7 @@ import org.opencdmp.commons.types.reference.DefinitionEntity;
|
||||||
import org.opencdmp.commons.types.reference.FieldEntity;
|
import org.opencdmp.commons.types.reference.FieldEntity;
|
||||||
import org.opencdmp.convention.ConventionService;
|
import org.opencdmp.convention.ConventionService;
|
||||||
import org.opencdmp.data.*;
|
import org.opencdmp.data.*;
|
||||||
import org.opencdmp.model.DmpBlueprint;
|
import org.opencdmp.model.dmpblueprint.DmpBlueprint;
|
||||||
import org.opencdmp.query.DmpBlueprintQuery;
|
import org.opencdmp.query.DmpBlueprintQuery;
|
||||||
import eu.old.eudat.data.dao.entities.DMPDao;
|
import eu.old.eudat.data.dao.entities.DMPDao;
|
||||||
import eu.old.eudat.data.entities.*;
|
import eu.old.eudat.data.entities.*;
|
||||||
|
|
|
@ -8,7 +8,7 @@ import org.opencdmp.commons.enums.ReferenceSourceType;
|
||||||
import org.opencdmp.commons.types.user.AdditionalInfoEntity;
|
import org.opencdmp.commons.types.user.AdditionalInfoEntity;
|
||||||
import org.opencdmp.data.ReferenceEntity;
|
import org.opencdmp.data.ReferenceEntity;
|
||||||
import org.opencdmp.data.UserEntity;
|
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.ReferenceQuery;
|
||||||
import org.opencdmp.query.UserQuery;
|
import org.opencdmp.query.UserQuery;
|
||||||
import eu.old.eudat.data.dao.entities.UserInfoDao;
|
import eu.old.eudat.data.dao.entities.UserInfoDao;
|
||||||
|
|
|
@ -113,7 +113,7 @@ public class MigrationController {
|
||||||
// this.dmpMigrationService.migrate();
|
// this.dmpMigrationService.migrate();
|
||||||
// this.dmpDatasetProfileMigrationService.migrate();
|
// this.dmpDatasetProfileMigrationService.migrate();
|
||||||
// this.dmpUserMigrationService.migrate();
|
// this.dmpUserMigrationService.migrate();
|
||||||
|
//
|
||||||
//Description
|
//Description
|
||||||
this.datasetMigrationService.migrate();
|
this.datasetMigrationService.migrate();
|
||||||
this.datasetReferenceMigrationService.migrateDatasetReferences();
|
this.datasetReferenceMigrationService.migrateDatasetReferences();
|
||||||
|
|
Loading…
Reference in New Issue