package de.votian.services.entity;

import java.io.Serializable;
import java.util.Objects;

public class EmployeeCostCenterId implements Serializable {

    private Long employeeId;
    private Long costCenterId;

    public EmployeeCostCenterId() {
    }

    public EmployeeCostCenterId(Long employeeId, Long costCenterId) {
        this.employeeId = employeeId;
        this.costCenterId = costCenterId;
    }

    @Override
    public boolean equals(Object o) {
        if (!(o instanceof EmployeeCostCenterId that)) {
            return false;
        }
        return Objects.equals(employeeId, that.employeeId)
                && Objects.equals(costCenterId, that.costCenterId);
    }

    @Override
    public int hashCode() {
        return Objects.hash(employeeId, costCenterId);
    }
}
