added default value for the column dsm_services.eosc_type

This commit is contained in:
Claudio Atzori 2022-07-22 15:22:05 +02:00
parent 98d1e17761
commit db400dbfe0
2 changed files with 14 additions and 1 deletions

View File

@ -19,6 +19,8 @@ import eu.dnetlib.enabling.datasources.common.Datasource;
@Table(name = "dsm_services")
public class DatasourceDbEntry extends Datasource<OrganizationDbEntry, IdentityDbEntry, PidSystemDbEntry> {
public static final String DEFAULT_EOSC_TYPE = "Data Source";
@Transient
private String openaireId;
@ -26,6 +28,9 @@ public class DatasourceDbEntry extends Datasource<OrganizationDbEntry, IdentityD
@Column(name = "_typology_to_remove_")
private String typology;
@Column(name = "eosc_type")
private String eoscType = DEFAULT_EOSC_TYPE;
public String getOpenaireId() {
return openaireId;
}
@ -43,4 +48,12 @@ public class DatasourceDbEntry extends Datasource<OrganizationDbEntry, IdentityD
public void setTypology(final String typology) {
this.typology = typology;
}
public String getEoscType() {
return eoscType;
}
public void setEoscType(String eoscType) {
this.eoscType = eoscType;
}
}

View File

@ -10,7 +10,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>eu.dnetlib.dhp</groupId>
<artifactId>dnet-applications</artifactId>
<version>3.2.9-SNAPSHOT</version>
<version>3.2.10-SNAPSHOT</version>
<packaging>pom</packaging>
<licenses>