org.epos.handler.dbapi.model.EDMWebserviceSpatial Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of db-api Show documentation
Show all versions of db-api Show documentation
EPOS Database APIs useful to interact with EPOS Metadata Catalogue
The newest version!
package org.epos.handler.dbapi.model;
import javax.persistence.*;
@Entity
@Table(name = "webservice_spatial")
public class EDMWebserviceSpatial {
private String id;
private String location;
private String instanceWebserviceId;
private EDMWebservice webserviceByInstanceWebserviceId;
@Id
@Column(name = "id")
public String getId() {
return id;
}
public void setId(String id) {
this.id = id;
}
@Basic
@Column(name = "location")
public String getLocation() {
return location;
}
public void setLocation(String location) {
this.location = location;
}
@Basic
@Column(name = "instance_webservice_id", insertable = false, updatable = false)
public String getInstanceWebserviceId() {
return instanceWebserviceId;
}
public void setInstanceWebserviceId(String instanceWebserviceId) {
this.instanceWebserviceId = instanceWebserviceId;
}
@Override
public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
EDMWebserviceSpatial that = (EDMWebserviceSpatial) o;
if (id != null ? !id.equals(that.id) : that.id != null) return false;
return location != null ? location.equals(that.location) : that.location == null;
}
@Override
public int hashCode() {
int result = id != null ? id.hashCode() : 0;
result = 31 * result + (location != null ? location.hashCode() : 0);
return result;
}
@ManyToOne
@JoinColumn(name = "instance_webservice_id", referencedColumnName = "instance_id", nullable = false)
public EDMWebservice getWebserviceByInstanceWebserviceId() {
return webserviceByInstanceWebserviceId;
}
public void setWebserviceByInstanceWebserviceId(EDMWebservice webserviceByInstanceWebserviceId) {
this.webserviceByInstanceWebserviceId = webserviceByInstanceWebserviceId;
}
}