@Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (!(o instanceof BomClosureEntity)) return false;
        if (!super.equals(o)) return false;

        BomClosureEntity bomClosureEntity = (BomClosureEntity) o;

        if (amount != bomClosureEntity.amount) return false;
        if (length != bomClosureEntity.length) return false;
        if (component != null ? !component.equals(bomClosureEntity.component) : bomClosureEntity.component != null) return false;
        if (product != null ? !product.equals(bomClosureEntity.product) : bomClosureEntity.product != null) return false;

        return true;
    }