added default value for the column dsm_services.eosc_type
This commit is contained in:
parent
98d1e17761
commit
db400dbfe0
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue