/**
 * 
 */
package Dataset;

import java.io.Serializable;

/**
 * @author alexis
 * dataset de la table groupe
 */
public class groupe implements Serializable {
	private int groupe_p_id;
	private int client_fk_id;
	private String groupe_nom;

	/**************************************************************************
	 * constructeur
	 *************************************************************************/
	
	public groupe(int groupe_p_id, int client_fk_id, String groupe_nom) {
		this.groupe_p_id = groupe_p_id;
		this.client_fk_id = client_fk_id;
		this.groupe_nom = groupe_nom;
	}

	/**************************************************************************
	 * getter
	 *************************************************************************/
	
	/**
	 * @return the groupe_p_id
	 */
	public int getgroupe_p_id() {
		return groupe_p_id;
	}

	/**
	 * @return the client_fk_id
	 */
	public int getClient_fk_id() {
		return client_fk_id;
	}

	/**
	 * @return the groupe_nom
	 */
	public String getGroupe_nom() {
		return groupe_nom;
	}

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

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

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

	/**************************************************************************
	 * object
	 *************************************************************************/
	
	/* (non-Javadoc)
	 * @see java.lang.Object#toString()
	 */
	@Override
	public String toString() {
		return "groupe [groupe_p_id=" + groupe_p_id + ", client_fk_id="
				+ client_fk_id + ", groupe_nom=" + groupe_nom + "]";
	}

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