package it.csi.demo.democomp.business.business.dao.refappdao.dto;

import it.csi.demo.democomp.business.business.dao.refappdao.dao.*;
import it.csi.demo.democomp.business.business.dao.refappdao.exceptions.*;
import java.io.Serializable;
import java.util.*;

/**
 * @generated
 */
public class ProvinciaPk implements Serializable {

	/**
	 * @generated
	 */
	private java.math.BigDecimal _idProvincia;

	/**
	 * @generated
	 */
	public void setIdProvincia(java.math.BigDecimal val) {
		_idProvincia = val;
	}

	/**
	 * @generated
	 */
	public java.math.BigDecimal getIdProvincia() {
		return _idProvincia;
	}

	/**
	 * @generated
	 */
	public ProvinciaPk() {
	}

	/**
	 * @generated
	 */
	public ProvinciaPk(

	final java.math.BigDecimal idProvincia

	) {

		this._idProvincia = idProvincia;

	}

	/**
	 * Method 'equals'
	 * 
	 * @param _other
	 * @return boolean
	 */
	public boolean equals(Object _other) {
		if (_other == null) {
			return false;
		}

		if (_other == this) {
			return true;
		}

		if (!(_other instanceof ProvinciaPk)) {
			return false;
		}

		final ProvinciaPk _cast = (ProvinciaPk) _other;

		if (_idProvincia == null
				? _cast.getIdProvincia() != _idProvincia
				: !_idProvincia.equals(_cast.getIdProvincia())) {
			return false;
		}

		return true;
	}

	/**
	 * Method 'hashCode'
	 * 
	 * @return int
	 */
	public int hashCode() {
		int _hashCode = 0;

		if (_idProvincia != null) {
			_hashCode = 29 * _hashCode + _idProvincia.hashCode();
		}

		return _hashCode;
	}

	/**
	 * Method 'toString'
	 * 
	 * @return String
	 */
	public String toString() {
		StringBuffer ret = new StringBuffer();

		ret.append("it.csi.demo.democomp.business.business.dao.refappdao.dto.ProvinciaPk: ");
		ret.append("_idProvincia=" + _idProvincia);

		return ret.toString();
	}
}
