62 lines
1.1 KiB
Java
62 lines
1.1 KiB
Java
package eu.dnetlib.openaire.community.db.model;
|
|
|
|
import java.io.Serializable;
|
|
|
|
import javax.persistence.Column;
|
|
import javax.persistence.Entity;
|
|
import javax.persistence.Id;
|
|
import javax.persistence.IdClass;
|
|
import javax.persistence.Table;
|
|
|
|
@Entity
|
|
@Table(name = "community_datasources")
|
|
@IdClass(DbDatasourcePK.class)
|
|
public class DbDatasource implements Serializable {
|
|
|
|
private static final long serialVersionUID = 1L;
|
|
|
|
@Id
|
|
@Column(name = "community")
|
|
private String community;
|
|
|
|
@Id
|
|
@Column(name = "ds_id")
|
|
private String dsId;
|
|
|
|
@Column(name = "ds_name")
|
|
private String dsName;
|
|
|
|
public DbDatasource() {}
|
|
|
|
public DbDatasource(final String community, final String dsId, final String dsName) {
|
|
this.community = community;
|
|
this.dsId = dsId;
|
|
this.dsName = dsName;
|
|
}
|
|
|
|
public String getCommunity() {
|
|
return community;
|
|
}
|
|
|
|
public void setCommunity(final String community) {
|
|
this.community = community;
|
|
}
|
|
|
|
public String getDsId() {
|
|
return dsId;
|
|
}
|
|
|
|
public void setDsId(final String dsId) {
|
|
this.dsId = dsId;
|
|
}
|
|
|
|
public String getDsName() {
|
|
return dsName;
|
|
}
|
|
|
|
public void setDsName(final String dsName) {
|
|
this.dsName = dsName;
|
|
}
|
|
|
|
}
|