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;

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

	private String parametro;
	private String valore;

	public AppParamId() {
	}

	public AppParamId(String parametro, String valore) {
		this.parametro = parametro;
		this.valore = valore;
	}

	@Column(name = "Parametro", length = 50)
	public String getParametro() {
		return this.parametro;
	}

	public void setParametro(String parametro) {
		this.parametro = parametro;
	}

	@Column(name = "Valore", length = 200)
	public String getValore() {
		return this.valore;
	}

	public void setValore(String valore) {
		this.valore = valore;
	}

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

		return ((this.getParametro() == castOther.getParametro()) || (this.getParametro() != null
				&& castOther.getParametro() != null && this.getParametro().equals(castOther.getParametro())))
				&& ((this.getValore() == castOther.getValore()) || (this.getValore() != null
						&& castOther.getValore() != null && this.getValore().equals(castOther.getValore())));
	}

	public int hashCode() {
		int result = 17;

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

}
