Fix critical issue when importing from xml with researchers
This commit is contained in:
parent
734dc94f26
commit
8a8993b235
|
@ -24,7 +24,7 @@ public class Researcher implements DataEntity<Researcher, UUID> {
|
|||
@Column(name = "\"ID\"", updatable = false, nullable = false, columnDefinition = "BINARY(16)")
|
||||
private UUID id;
|
||||
|
||||
@Column(name = "\"Label\"")
|
||||
@Column(name = "\"Label\"", nullable = false, length = 250)
|
||||
private String label;
|
||||
|
||||
@Column(name = "\"Uri\"")
|
||||
|
|
|
@ -1668,6 +1668,7 @@ public class DataManagementPlanManager {
|
|||
for (ResearcherImportModels res : dataManagementPlans.get(0).getResearchersImportModels()) {
|
||||
eu.eudat.models.data.dmp.Researcher researcher = new eu.eudat.models.data.dmp.Researcher();
|
||||
researcher.setLabel(res.getResearcherImportName());
|
||||
researcher.setName(res.getResearcherImportName());
|
||||
researcher.setReference(res.getResearcherImportReference());
|
||||
researcher.setKey(researcher.getReference().split(":")[0]);
|
||||
researchers.add(researcher);
|
||||
|
|
Loading…
Reference in New Issue