62 lines
1.2 KiB
Java
62 lines
1.2 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(CommunityDatasourcePK.class)
|
||
|
public class CommunityDatasource 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 CommunityDatasource() {}
|
||
|
|
||
|
public CommunityDatasource(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;
|
||
|
}
|
||
|
|
||
|
}
|