move vs dnet_services
This commit is contained in:
parent
33bd9c396f
commit
37b662ac20
|
@ -1,14 +1,17 @@
|
|||
package eu.dnetlib.openaire.dsm.domain.db;
|
||||
|
||||
import javax.persistence.*;
|
||||
import javax.persistence.Entity;
|
||||
import javax.persistence.Id;
|
||||
import javax.persistence.Table;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonAutoDetect;
|
||||
import com.fasterxml.jackson.annotation.JsonIgnore;
|
||||
|
||||
import io.swagger.annotations.ApiModel;
|
||||
|
||||
@Entity
|
||||
@JsonAutoDetect
|
||||
@Table(name = "dsm_datasource_api")
|
||||
@Table(name = "dsm_service_api")
|
||||
@ApiModel(value = "DatasourceApi model", description = "describes a joint view between datasources and their API (1:N)")
|
||||
public class DatasourceApiDbEntry {
|
||||
|
||||
|
@ -169,7 +172,7 @@ public class DatasourceApiDbEntry {
|
|||
return id;
|
||||
}
|
||||
|
||||
public void setId(String id) {
|
||||
public void setId(final String id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
|
@ -177,7 +180,7 @@ public class DatasourceApiDbEntry {
|
|||
return collectedfrom;
|
||||
}
|
||||
|
||||
public void setCollectedfrom(String collectedfrom) {
|
||||
public void setCollectedfrom(final String collectedfrom) {
|
||||
this.collectedfrom = collectedfrom;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -4,17 +4,18 @@ import javax.persistence.Entity;
|
|||
import javax.persistence.Table;
|
||||
import javax.persistence.Transient;
|
||||
|
||||
import eu.dnetlib.enabling.datasources.common.Datasource;
|
||||
import org.hibernate.annotations.DynamicUpdate;
|
||||
import org.hibernate.annotations.SelectBeforeUpdate;
|
||||
|
||||
import eu.dnetlib.enabling.datasources.common.Datasource;
|
||||
|
||||
/**
|
||||
* Datasource
|
||||
*/
|
||||
@Entity
|
||||
@DynamicUpdate
|
||||
@SelectBeforeUpdate
|
||||
@Table(name = "dsm_datasources")
|
||||
@Table(name = "dsm_services")
|
||||
public class DatasourceDbEntry extends Datasource<OrganizationDbEntry, IdentityDbEntry> {
|
||||
|
||||
@Transient
|
||||
|
|
Loading…
Reference in New Issue