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

com.kenshoo.pl.entity.FullIdentifier Maven / Gradle / Ivy

Go to download

A Java persistence layer based on JOOQ for high performance and business flow support.

There is a newer version: 0.1.121-jooq-3.16.3
Show newest version
package com.kenshoo.pl.entity;

import java.util.Objects;

public class FullIdentifier, CHILD extends EntityType>{

    private final Identifier parentId;
    private final Identifier childId;
    private final Identifier keyToParent;

    public FullIdentifier(Identifier parentId, Identifier childId, Identifier keyToParent) {
        this.parentId = parentId;
        this.childId = childId;
        this.keyToParent = keyToParent;
    }

    public Identifier getParentId() {
        return parentId;
    }

    public Identifier getChildId() {
        return childId;
    }

    public Identifier getKetToParent() {
        return keyToParent;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        FullIdentifier that = (FullIdentifier) o;
        return Objects.equals(parentId, that.parentId) &&
                Objects.equals(childId, that.childId) &&
                Objects.equals(keyToParent, that.keyToParent);
    }

    @Override
    public int hashCode() {
        return Objects.hash(parentId, childId, keyToParent);
    }

    @Override
    public String toString() {
        return "FullIdentifier{" +
                "parentId=" + parentId +
                ", childId=" + childId +
                '}';
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy