package Dataset;

import java.io.Serializable;

/**
 * @author alexis
 * dataset de la table employe
 */
public class employe implements Serializable {
	private int employe_p_id;
	private String employe_prenom;
	private String employe_nom;
	private String employe_commentaire;
	private int utilisateur_fk_id;

	/**************************************************************************
	 * constructeur
	 *************************************************************************/
	
	public employe(int employe_p_id, String employe_prenom, String employe_nom,
				   String employe_commentaire, int utilisateur_fk_id) {
		this.employe_p_id = employe_p_id;
		this.employe_prenom = employe_prenom;
		this.employe_nom = employe_nom;
		this.employe_commentaire = employe_commentaire;
		this.utilisateur_fk_id = utilisateur_fk_id;
	}

	/**************************************************************************
	 * getter
	 *************************************************************************/
	
	/**
	 * @return the employe_p_id
	 */
	public int getemploye_p_id() {
		return employe_p_id;
	}

	/**
	 * @return the employe_prenom
	 */
	public String getEmploye_prenom() {
		return employe_prenom;
	}

	/**
	 * @return the employe_nom
	 */
	public String getEmploye_nom() {
		return employe_nom;
	}

	/**
	 * @return the employe_commentaire
	 */
	public String getEmploye_commentaire() {
		return employe_commentaire;
	}

	/**
	 * @return the utilisateur_fk_id
	 */
	public int getUtilisateur_fk_id() {
		return utilisateur_fk_id;
	}

	/**************************************************************************
	 * setter
	 *************************************************************************/
	
	/**
	 * @param employe_p_id the employe_p_id to set
	 */
	public void setemploye_p_id(int employe_p_id) {
		this.employe_p_id = employe_p_id;
	}

	/**
	 * @param employe_prenom the employe_prenom to set
	 */
	public void setEmploye_prenom(String employe_prenom) {
		this.employe_prenom = employe_prenom;
	}

	/**
	 * @param employe_nom the employe_nom to set
	 */
	public void setEmploye_nom(String employe_nom) {
		this.employe_nom = employe_nom;
	}

	/**
	 * @param employe_commentaire the employe_commentaire to set
	 */
	public void setEmploye_commentaire(String employe_commentaire) {
		this.employe_commentaire = employe_commentaire;
	}

	/**
	 * @param utilisateur_fk_id the utilisateur_fk_id to set
	 */
	public void setUtilisateur_fk_id(int utilisateur_fk_id) {
		this.utilisateur_fk_id = utilisateur_fk_id;
	}

	/**************************************************************************
	 * object
	 *************************************************************************/
	
	/* (non-Javadoc)
	 * @see java.lang.Object#toString()
	 */
	@Override
	public String toString() {
		return "employe [employe_p_id=" + employe_p_id + ", employe_prenom="
				+ employe_prenom + ", employe_nom=" + employe_nom
				+ ", employe_commentaire=" + employe_commentaire
				+ ", utilisateur_fk_id=" + utilisateur_fk_id + "]";
	}

	/* (non-Javadoc)
	 * @see java.lang.Object#hashCode()
	 */
	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime
				* result
				+ ((employe_commentaire == null) ? 0 : employe_commentaire
						.hashCode());
		result = prime * result
				+ ((employe_nom == null) ? 0 : employe_nom.hashCode());
		result = prime * result + employe_p_id;
		result = prime * result
				+ ((employe_prenom == null) ? 0 : employe_prenom.hashCode());
		result = prime * result + utilisateur_fk_id;
		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 (!(obj instanceof employe))
			return false;
		employe other = (employe) obj;
		if (employe_commentaire == null) {
			if (other.employe_commentaire != null)
				return false;
		} else if (!employe_commentaire.equals(other.employe_commentaire))
			return false;
		if (employe_nom == null) {
			if (other.employe_nom != null)
				return false;
		} else if (!employe_nom.equals(other.employe_nom))
			return false;
		if (employe_p_id != other.employe_p_id)
			return false;
		if (employe_prenom == null) {
			if (other.employe_prenom != null)
				return false;
		} else if (!employe_prenom.equals(other.employe_prenom))
			return false;
		if (utilisateur_fk_id != other.utilisateur_fk_id)
			return false;
		return true;
	}

	
}
