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

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

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

	/**
	 * @generated
	 */
	public java.math.BigDecimal getIdCittadino() {
		return _idCittadino;
	}

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

	/**
	 * @generated
	 */
	public CittadinoPk(

	final java.math.BigDecimal idCittadino

	) {

		this._idCittadino = idCittadino;

	}

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

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

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

		final CittadinoPk _cast = (CittadinoPk) _other;

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

		return true;
	}

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

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

		return ret.toString();
	}
}
