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 RegionePk implements Serializable {

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

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

	/**
	 * @generated
	 */
	public java.math.BigDecimal getIdRegione() {
		return _idRegione;
	}

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

	/**
	 * @generated
	 */
	public RegionePk(

	final java.math.BigDecimal idRegione

	) {

		this._idRegione = idRegione;

	}

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

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

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

		final RegionePk _cast = (RegionePk) _other;

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

		return true;
	}

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

		if (_idRegione != null) {
			_hashCode = 29 * _hashCode + _idRegione.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.RegionePk: ");
		ret.append("_idRegione=" + _idRegione);

		return ret.toString();
	}
}
