model.OrganizationLegalname 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
package model;
import jakarta.persistence.*;
@Entity
@Table(name = "organization_legalname", schema = "public", catalog = "cerif")
public class OrganizationLegalname {
@Id
@Column(name = "instance_id", nullable = false, length = 100)
private String instanceId;
@Basic
@Column(name = "meta_id", nullable = true, length = 100)
private String metaId;
@Basic
@Column(name = "uid", nullable = true, length = 100)
private String uid;
@Basic
@Column(name = "version_id", nullable = true, length = 100)
private String versionId;
@Basic
@Column(name = "legalname", nullable = true, length = 1024)
private String legalname;
@Basic
@Column(name = "language", nullable = true, length = 1024)
private String language;
@Basic
@Column(name = "organization_instance_id", nullable = false, length = 100)
private String organizationInstanceId;
@ManyToOne
@PrimaryKeyJoinColumn(name = "version_id", referencedColumnName = "version_id")
private Versioningstatus versioningstatusByVersionId;
@ManyToOne
@PrimaryKeyJoinColumn(name = "organization_instance_id", referencedColumnName = "instance_id")
private Organization organizationByOrganizationInstanceId;
public String getInstanceId() {
return instanceId;
}
public void setInstanceId(String instanceId) {
this.instanceId = instanceId;
}
public String getMetaId() {
return metaId;
}
public void setMetaId(String metaId) {
this.metaId = metaId;
}
public String getUid() {
return uid;
}
public void setUid(String uid) {
this.uid = uid;
}
public String getVersionId() {
return versionId;
}
public void setVersionId(String versionId) {
this.versionId = versionId;
}
public String getLegalname() {
return legalname;
}
public void setLegalname(String legalname) {
this.legalname = legalname;
}
public String getLanguage() {
return language;
}
public void setLanguage(String language) {
this.language = language;
}
public String getOrganizationInstanceId() {
return organizationInstanceId;
}
public void setOrganizationInstanceId(String organizationInstanceId) {
this.organizationInstanceId = organizationInstanceId;
}
@Override
public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
OrganizationLegalname that = (OrganizationLegalname) o;
if (instanceId != null ? !instanceId.equals(that.instanceId) : that.instanceId != null) return false;
if (metaId != null ? !metaId.equals(that.metaId) : that.metaId != null) return false;
if (uid != null ? !uid.equals(that.uid) : that.uid != null) return false;
if (versionId != null ? !versionId.equals(that.versionId) : that.versionId != null) return false;
if (legalname != null ? !legalname.equals(that.legalname) : that.legalname != null) return false;
if (language != null ? !language.equals(that.language) : that.language != null) return false;
if (organizationInstanceId != null ? !organizationInstanceId.equals(that.organizationInstanceId) : that.organizationInstanceId != null)
return false;
return true;
}
@Override
public int hashCode() {
int result = instanceId != null ? instanceId.hashCode() : 0;
result = 31 * result + (metaId != null ? metaId.hashCode() : 0);
result = 31 * result + (uid != null ? uid.hashCode() : 0);
result = 31 * result + (versionId != null ? versionId.hashCode() : 0);
result = 31 * result + (legalname != null ? legalname.hashCode() : 0);
result = 31 * result + (language != null ? language.hashCode() : 0);
result = 31 * result + (organizationInstanceId != null ? organizationInstanceId.hashCode() : 0);
return result;
}
public Versioningstatus getVersioningstatusByVersionId() {
return versioningstatusByVersionId;
}
public void setVersioningstatusByVersionId(Versioningstatus versioningstatusByVersionId) {
this.versioningstatusByVersionId = versioningstatusByVersionId;
}
public Organization getOrganizationByOrganizationInstanceId() {
return organizationByOrganizationInstanceId;
}
public void setOrganizationByOrganizationInstanceId(Organization organizationByOrganizationInstanceId) {
this.organizationByOrganizationInstanceId = organizationByOrganizationInstanceId;
}
}