package sicura.entities;
// Generated 2-lug-2017 12.20.06 by Hibernate Tools 5.2.3.Final

import javax.persistence.Column;
import javax.persistence.Embeddable;

/**
 * CompiledConvalidaTableId generated by hbm2java
 */
@Embeddable
public class CompiledConvalidaTableId implements java.io.Serializable {

	private int idbanca;
	private String tipologia;

	public CompiledConvalidaTableId() {
	}

	public CompiledConvalidaTableId(int idbanca, String tipologia) {
		this.idbanca = idbanca;
		this.tipologia = tipologia;
	}

	@Column(name = "IDBanca", nullable = false)
	public int getIdbanca() {
		return this.idbanca;
	}

	public void setIdbanca(int idbanca) {
		this.idbanca = idbanca;
	}

	@Column(name = "Tipologia", nullable = false, length = 50)
	public String getTipologia() {
		return this.tipologia;
	}

	public void setTipologia(String tipologia) {
		this.tipologia = tipologia;
	}

	public boolean equals(Object other) {
		if ((this == other))
			return true;
		if ((other == null))
			return false;
		if (!(other instanceof CompiledConvalidaTableId))
			return false;
		CompiledConvalidaTableId castOther = (CompiledConvalidaTableId) other;

		return (this.getIdbanca() == castOther.getIdbanca())
				&& ((this.getTipologia() == castOther.getTipologia()) || (this.getTipologia() != null
						&& castOther.getTipologia() != null && this.getTipologia().equals(castOther.getTipologia())));
	}

	public int hashCode() {
		int result = 17;

		result = 37 * result + this.getIdbanca();
		result = 37 * result + (getTipologia() == null ? 0 : this.getTipologia().hashCode());
		return result;
	}

}
