package model;
// Generated Oct 23, 2017 4:23:49 PM by Hibernate Tools 3.5.0.Final

/**
 * RealisateurfilmsdramaId generated by hbm2java
 */
public class RealisateurfilmsdramaId implements java.io.Serializable {

	private String nom;
	private String prenom;
	private Short annee;

	public RealisateurfilmsdramaId() {
	}

	public RealisateurfilmsdramaId(String nom, String prenom) {
		this.nom = nom;
		this.prenom = prenom;
	}

	public RealisateurfilmsdramaId(String nom, String prenom, Short annee) {
		this.nom = nom;
		this.prenom = prenom;
		this.annee = annee;
	}

	public String getNom() {
		return this.nom;
	}

	public void setNom(String nom) {
		this.nom = nom;
	}

	public String getPrenom() {
		return this.prenom;
	}

	public void setPrenom(String prenom) {
		this.prenom = prenom;
	}

	public Short getAnnee() {
		return this.annee;
	}

	public void setAnnee(Short annee) {
		this.annee = annee;
	}

	public boolean equals(Object other) {
		if ((this == other))
			return true;
		if ((other == null))
			return false;
		if (!(other instanceof RealisateurfilmsdramaId))
			return false;
		RealisateurfilmsdramaId castOther = (RealisateurfilmsdramaId) other;

		return ((this.getNom() == castOther.getNom())
				|| (this.getNom() != null && castOther.getNom() != null && this.getNom().equals(castOther.getNom())))
				&& ((this.getPrenom() == castOther.getPrenom()) || (this.getPrenom() != null
						&& castOther.getPrenom() != null && this.getPrenom().equals(castOther.getPrenom())))
				&& ((this.getAnnee() == castOther.getAnnee()) || (this.getAnnee() != null
						&& castOther.getAnnee() != null && this.getAnnee().equals(castOther.getAnnee())));
	}

	public int hashCode() {
		int result = 17;

		result = 37 * result + (getNom() == null ? 0 : this.getNom().hashCode());
		result = 37 * result + (getPrenom() == null ? 0 : this.getPrenom().hashCode());
		result = 37 * result + (getAnnee() == null ? 0 : this.getAnnee().hashCode());
		return result;
	}

}
