package com.eyrolles.model;


import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;


@Entity
@Table(name="clients")
public class Client {
	@Id @GeneratedValue(strategy=GenerationType.AUTO)
	private int id;	
	private String nom;
	private String prenom;
	private String civilite;
	private String email;
	private String motDePasse;
	private boolean newsletter;
	private boolean abonne;

	
	public Client() {
		super();
	}
	 
	
	public Client(String nom, String prenom, String civilite, String email, String motDePasse, boolean newsletter,
			boolean abonne) {
		super();
		this.nom = nom;
		this.prenom = prenom;
		this.civilite = civilite;
		this.email = email;
		this.motDePasse = motDePasse;
		this.newsletter = newsletter;
		this.abonne = abonne;
	}


	public String getNom() {
		return nom;
	}
	public void setNom(String nom) {
		this.nom = nom;
	}
	public String getPrenom() {
		return prenom;
	}
	public void setPrenom(String prenom) {
		this.prenom = prenom;
	}

	
	public String getEmail() {
		return email;
	}
	public void setEmail(String email) {
		this.email = email;
	}
	

	
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	public String getMotDePasse() {
		return motDePasse;
	}
	public void setMotDePasse(String motDePasse) {
		this.motDePasse = motDePasse;
	}
	public String getCivilite() {
		return civilite;
	}
	public void setCivilite(String civilite) {
		this.civilite = civilite;
	}
	public boolean isNewsletter() {
		return newsletter;
	}
	public void setNewsletter(boolean newsletter) {
		this.newsletter = newsletter;
	}
	public boolean isAbonne() {
		return abonne;
	}
	public void setAbonne(boolean abonne) {
		this.abonne = abonne;
	}
	 
	
}
