package model;
// Generated Oct 23, 2017 4:23:49 PM by Hibernate Tools 3.5.0.Final

import java.math.BigDecimal;

/**
 * Films90Id generated by hbm2java
 */
public class Films90Id implements java.io.Serializable {

	private BigDecimal numFilm;
	private BigDecimal numInd;
	private String titre;
	private String genre;
	private Short annee;

	public Films90Id() {
	}

	public Films90Id(BigDecimal numFilm, BigDecimal numInd, String titre) {
		this.numFilm = numFilm;
		this.numInd = numInd;
		this.titre = titre;
	}

	public Films90Id(BigDecimal numFilm, BigDecimal numInd, String titre, String genre, Short annee) {
		this.numFilm = numFilm;
		this.numInd = numInd;
		this.titre = titre;
		this.genre = genre;
		this.annee = annee;
	}

	public BigDecimal getNumFilm() {
		return this.numFilm;
	}

	public void setNumFilm(BigDecimal numFilm) {
		this.numFilm = numFilm;
	}

	public BigDecimal getNumInd() {
		return this.numInd;
	}

	public void setNumInd(BigDecimal numInd) {
		this.numInd = numInd;
	}

	public String getTitre() {
		return this.titre;
	}

	public void setTitre(String titre) {
		this.titre = titre;
	}

	public String getGenre() {
		return this.genre;
	}

	public void setGenre(String genre) {
		this.genre = genre;
	}

	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 Films90Id))
			return false;
		Films90Id castOther = (Films90Id) other;

		return ((this.getNumFilm() == castOther.getNumFilm()) || (this.getNumFilm() != null
				&& castOther.getNumFilm() != null && this.getNumFilm().equals(castOther.getNumFilm())))
				&& ((this.getNumInd() == castOther.getNumInd()) || (this.getNumInd() != null
						&& castOther.getNumInd() != null && this.getNumInd().equals(castOther.getNumInd())))
				&& ((this.getTitre() == castOther.getTitre()) || (this.getTitre() != null
						&& castOther.getTitre() != null && this.getTitre().equals(castOther.getTitre())))
				&& ((this.getGenre() == castOther.getGenre()) || (this.getGenre() != null
						&& castOther.getGenre() != null && this.getGenre().equals(castOther.getGenre())))
				&& ((this.getAnnee() == castOther.getAnnee()) || (this.getAnnee() != null
						&& castOther.getAnnee() != null && this.getAnnee().equals(castOther.getAnnee())));
	}

	public int hashCode() {
		int result = 17;

		result = 37 * result + (getNumFilm() == null ? 0 : this.getNumFilm().hashCode());
		result = 37 * result + (getNumInd() == null ? 0 : this.getNumInd().hashCode());
		result = 37 * result + (getTitre() == null ? 0 : this.getTitre().hashCode());
		result = 37 * result + (getGenre() == null ? 0 : this.getGenre().hashCode());
		result = 37 * result + (getAnnee() == null ? 0 : this.getAnnee().hashCode());
		return result;
	}

}
