package es.dalocar.software;

// Generated 03-may-2010 22:59:56 by Hibernate Tools 3.2.4.GA

/**
 * AmortizacionId generated by hbm2java
 */
public class AmortizacionId implements java.io.Serializable {

	private int numero;
	private int anyo;

	public AmortizacionId() {
	}

	public AmortizacionId(int numero, int anyo) {
		this.numero = numero;
		this.anyo = anyo;
	}

	public int getNumero() {
		return this.numero;
	}

	public void setNumero(int numero) {
		this.numero = numero;
	}

	public int getAnyo() {
		return this.anyo;
	}

	public void setAnyo(int anyo) {
		this.anyo = anyo;
	}

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

		return (this.getNumero() == castOther.getNumero())
				&& (this.getAnyo() == castOther.getAnyo());
	}

	public int hashCode() {
		int result = 17;

		result = 37 * result + this.getNumero();
		result = 37 * result + this.getAnyo();
		return result;
	}

}
