new-exporter #5
|
@ -57,6 +57,7 @@ public class DsmMappingUtils {
|
|||
if (d.getOrganizations() != null) {
|
||||
ds.setOrganizations(d.getOrganizations().stream().map(DsmMappingUtils::asOrganizationDetail).collect(Collectors.toSet()));
|
||||
}
|
||||
ds.setTypology(d.getTypology());
|
||||
return ds;
|
||||
}
|
||||
|
||||
|
|
|
@ -123,6 +123,10 @@ public class DatasourceDetails extends DatasourceIgnoredProperties {
|
|||
@ApiModelProperty(position = 32)
|
||||
private String status;
|
||||
|
||||
@Deprecated
|
||||
@ApiModelProperty(position = 32)
|
||||
private String typology;
|
||||
|
||||
public String getId() {
|
||||
return id;
|
||||
}
|
||||
|
@ -411,4 +415,14 @@ public class DatasourceDetails extends DatasourceIgnoredProperties {
|
|||
return this;
|
||||
}
|
||||
|
||||
@Deprecated
|
||||
public String getTypology() {
|
||||
return typology;
|
||||
}
|
||||
|
||||
@Deprecated
|
||||
public void setTypology(final String typology) {
|
||||
this.typology = typology;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -58,6 +58,10 @@ public class DatasourceSnippetExtended {
|
|||
@ApiModelProperty(position = 13)
|
||||
private Set<OrganizationDetails> organizations;
|
||||
|
||||
@Deprecated
|
||||
@ApiModelProperty(position = 14)
|
||||
private String typology;
|
||||
|
||||
public String getId() {
|
||||
return id;
|
||||
}
|
||||
|
@ -167,4 +171,14 @@ public class DatasourceSnippetExtended {
|
|||
this.organizations = organizations;
|
||||
}
|
||||
|
||||
@Deprecated
|
||||
public String getTypology() {
|
||||
return typology;
|
||||
}
|
||||
|
||||
@Deprecated
|
||||
public void setTypology(final String typology) {
|
||||
this.typology = typology;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
package eu.dnetlib.openaire.dsm.domain.db;
|
||||
|
||||
import javax.persistence.Column;
|
||||
import javax.persistence.Entity;
|
||||
import javax.persistence.Table;
|
||||
import javax.persistence.Transient;
|
||||
|
@ -21,6 +22,10 @@ public class DatasourceDbEntry extends Datasource<OrganizationDbEntry, IdentityD
|
|||
@Transient
|
||||
private String openaireId;
|
||||
|
||||
@Deprecated
|
||||
@Column(name = "_typology_to_remove_")
|
||||
private String typology;
|
||||
|
||||
public String getOpenaireId() {
|
||||
return openaireId;
|
||||
}
|
||||
|
@ -28,4 +33,14 @@ public class DatasourceDbEntry extends Datasource<OrganizationDbEntry, IdentityD
|
|||
public void setOpenaireId(final String openaireId) {
|
||||
this.openaireId = openaireId;
|
||||
}
|
||||
|
||||
@Deprecated
|
||||
public String getTypology() {
|
||||
return typology;
|
||||
}
|
||||
|
||||
@Deprecated
|
||||
public void setTypology(final String typology) {
|
||||
this.typology = typology;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue