package com.its.op;

import javax.persistence.Column;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import java.io.Serializable;
import java.util.Objects;

public class TbIfscVrtxArrEntityPK implements Serializable {
    @Column(name = "IFSC_ID", nullable = false, precision = 0)
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private int ifscId;
    @Column(name = "LEVL", nullable = false, precision = 0)
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private int levl;

    public int getIfscId() {
        return ifscId;
    }

    public void setIfscId(int ifscId) {
        this.ifscId = ifscId;
    }

    public int getLevl() {
        return levl;
    }

    public void setLevl(int levl) {
        this.levl = levl;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        TbIfscVrtxArrEntityPK that = (TbIfscVrtxArrEntityPK) o;
        return ifscId == that.ifscId && levl == that.levl;
    }

    @Override
    public int hashCode() {
        return Objects.hash(ifscId, levl);
    }
}
