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

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

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

	/**
	 * @generated
	 */
	public java.math.BigDecimal getIdComune() {
		return _idComune;
	}

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

	/**
	 * @generated
	 */
	public ComunePk(

	final java.math.BigDecimal idComune

	) {

		this._idComune = idComune;

	}

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

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

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

		final ComunePk _cast = (ComunePk) _other;

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

		return true;
	}

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

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

		return ret.toString();
	}
}
