All Downloads are FREE. Search and download functionalities are using the official Maven repository.

model.Facility Maven / Gradle / Ivy

There is a newer version: 2.5.21
Show newest version
package model;

import jakarta.persistence.*;
import java.util.Collection;

@Entity
public class Facility {
    @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 = "identifier", nullable = true, length = 1024)
    private String identifier;
    @Basic
    @Column(name = "description", nullable = true, length = -1)
    private String description;
    @Basic
    @Column(name = "title", nullable = true, length = 1024)
    private String title;
    @Basic
    @Column(name = "type", nullable = true, length = 1024)
    private String type;
    @Basic
    @Column(name = "keywords", nullable = true, length = -1)
    private String keywords;
    @ManyToOne
    @PrimaryKeyJoinColumn(name = "version_id", referencedColumnName = "version_id")
    private Versioningstatus versioningstatusByVersionId;
    @OneToMany(mappedBy = "facilityByFacilityInstanceId")
    private Collection facilityAddressesByInstanceId;
    @OneToMany(mappedBy = "facilityByFacilityInstanceId")
    private Collection facilityCategoriesByInstanceId;
    @OneToMany(mappedBy = "facilityByFacilityInstanceId")
    private Collection facilityContactpointsByInstanceId;
    @OneToMany(mappedBy = "facilityByFacilityInstanceId")
    private Collection facilityElementsByInstanceId;
    @OneToMany(mappedBy = "facilityByFacility1InstanceId")
    private Collection facilityIspartofsByInstanceId;
    @OneToMany(mappedBy = "facilityByFacility2InstanceId")
    private Collection facilityIspartofsByInstanceId_0;
    @OneToMany(mappedBy = "facilityByFacilityInstanceId")
    private Collection facilitySpatialsByInstanceId;

    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 getIdentifier() {
        return identifier;
    }

    public void setIdentifier(String identifier) {
        this.identifier = identifier;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getKeywords() {
        return keywords;
    }

    public void setKeywords(String keywords) {
        this.keywords = keywords;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        Facility facility = (Facility) o;

        if (instanceId != null ? !instanceId.equals(facility.instanceId) : facility.instanceId != null) return false;
        if (metaId != null ? !metaId.equals(facility.metaId) : facility.metaId != null) return false;
        if (uid != null ? !uid.equals(facility.uid) : facility.uid != null) return false;
        if (versionId != null ? !versionId.equals(facility.versionId) : facility.versionId != null) return false;
        if (identifier != null ? !identifier.equals(facility.identifier) : facility.identifier != null) return false;
        if (description != null ? !description.equals(facility.description) : facility.description != null)
            return false;
        if (title != null ? !title.equals(facility.title) : facility.title != null) return false;
        if (type != null ? !type.equals(facility.type) : facility.type != null) return false;
        if (keywords != null ? !keywords.equals(facility.keywords) : facility.keywords != 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 + (identifier != null ? identifier.hashCode() : 0);
        result = 31 * result + (description != null ? description.hashCode() : 0);
        result = 31 * result + (title != null ? title.hashCode() : 0);
        result = 31 * result + (type != null ? type.hashCode() : 0);
        result = 31 * result + (keywords != null ? keywords.hashCode() : 0);
        return result;
    }

    public Versioningstatus getVersioningstatusByVersionId() {
        return versioningstatusByVersionId;
    }

    public void setVersioningstatusByVersionId(Versioningstatus versioningstatusByVersionId) {
        this.versioningstatusByVersionId = versioningstatusByVersionId;
    }

    public Collection getFacilityAddressesByInstanceId() {
        return facilityAddressesByInstanceId;
    }

    public void setFacilityAddressesByInstanceId(Collection facilityAddressesByInstanceId) {
        this.facilityAddressesByInstanceId = facilityAddressesByInstanceId;
    }

    public Collection getFacilityCategoriesByInstanceId() {
        return facilityCategoriesByInstanceId;
    }

    public void setFacilityCategoriesByInstanceId(Collection facilityCategoriesByInstanceId) {
        this.facilityCategoriesByInstanceId = facilityCategoriesByInstanceId;
    }

    public Collection getFacilityContactpointsByInstanceId() {
        return facilityContactpointsByInstanceId;
    }

    public void setFacilityContactpointsByInstanceId(Collection facilityContactpointsByInstanceId) {
        this.facilityContactpointsByInstanceId = facilityContactpointsByInstanceId;
    }

    public Collection getFacilityElementsByInstanceId() {
        return facilityElementsByInstanceId;
    }

    public void setFacilityElementsByInstanceId(Collection facilityElementsByInstanceId) {
        this.facilityElementsByInstanceId = facilityElementsByInstanceId;
    }

    public Collection getFacilityIspartofsByInstanceId() {
        return facilityIspartofsByInstanceId;
    }

    public void setFacilityIspartofsByInstanceId(Collection facilityIspartofsByInstanceId) {
        this.facilityIspartofsByInstanceId = facilityIspartofsByInstanceId;
    }

    public Collection getFacilityIspartofsByInstanceId_0() {
        return facilityIspartofsByInstanceId_0;
    }

    public void setFacilityIspartofsByInstanceId_0(Collection facilityIspartofsByInstanceId_0) {
        this.facilityIspartofsByInstanceId_0 = facilityIspartofsByInstanceId_0;
    }

    public Collection getFacilitySpatialsByInstanceId() {
        return facilitySpatialsByInstanceId;
    }

    public void setFacilitySpatialsByInstanceId(Collection facilitySpatialsByInstanceId) {
        this.facilitySpatialsByInstanceId = facilitySpatialsByInstanceId;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy