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

	/**
	 * @generated
	 */
	private String _codiceFiscale;

	/**
	 * @generated
	 */
	public void setCodiceFiscale(String val) {
		_codiceFiscale = val;
	}

	/**
	 * @generated
	 */
	public String getCodiceFiscale() {
		return _codiceFiscale;
	}

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

	/**
	 * @generated
	 */
	public PersonaPk(

	final String codiceFiscale

	) {

		this._codiceFiscale = codiceFiscale;

	}

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

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

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

		final PersonaPk _cast = (PersonaPk) _other;

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

		return true;
	}

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

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

		return ret.toString();
	}
}
