package com.ejie.t17i.model;

/**
 * * Pais generated by UDA, 14-feb-2012 15:14:34.
 * 
XXXX
 */

public class Pais implements java.io.Serializable {

	private static final long serialVersionUID = 2194589506671323704L;
	private String id;
	private String nombre;

	/**
	 * Method 'Pais'.
	 * 
	 */
	public Pais() {
	}
	/**
	 * Method 'Pais'.
	 * 
	 * @param id
	 *            String
	 */
	public Pais(String id) {

		this.id = id;
	}
	/**
	 * Method 'Pais'.
	 * 
	 * @param id
	 *            String
	 * @param nombre
	 *            String
	 */
	public Pais(String id, String nombre) {

		this.id = id;
		this.nombre = nombre;
	}

	/**
	 * Method 'getId'.
	 * 
	 * @return String
	 */

	public String getId() {
		return this.id;
	}

	/**
	 * Method 'setId'.
	 * 
	 * @param id
	 *            String
	 * @return
	 */

	public void setId(String id) {
		this.id = id;
	}

	/**
	 * Method 'getNombre'.
	 * 
	 * @return String
	 */

	public String getNombre() {
		return this.nombre;
	}

	/**
	 * Method 'setNombre'.
	 * 
	 * @param nombre
	 *            String
	 * @return
	 */

	public void setNombre(String nombre) {
		this.nombre = nombre;
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see java.lang.Object#hashCode()
	 */
	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + ((id == null) ? 0 : id.hashCode());
		return result;
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see java.lang.Object#equals(java.lang.Object)
	 */
	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		Pais other = (Pais) obj;
		if (id == null) {
			if (other.id != null)
				return false;
		} else if (!id.equals(other.id))
			return false;
		return true;
	}

}
