package model;
// Generated Oct 23, 2017 4:23:49 PM by Hibernate Tools 3.5.0.Final

import java.math.BigDecimal;

/**
 * JouerId generated by hbm2java
 */
public class JouerId implements java.io.Serializable {

	private BigDecimal numInd;
	private BigDecimal numFilm;
	private String role;

	public JouerId() {
	}

	public JouerId(BigDecimal numInd, BigDecimal numFilm, String role) {
		this.numInd = numInd;
		this.numFilm = numFilm;
		this.role = role;
	}

	public BigDecimal getNumInd() {
		return this.numInd;
	}

	public void setNumInd(BigDecimal numInd) {
		this.numInd = numInd;
	}

	public BigDecimal getNumFilm() {
		return this.numFilm;
	}

	public void setNumFilm(BigDecimal numFilm) {
		this.numFilm = numFilm;
	}

	public String getRole() {
		return this.role;
	}

	public void setRole(String role) {
		this.role = role;
	}

	public boolean equals(Object other) {
		if ((this == other))
			return true;
		if ((other == null))
			return false;
		if (!(other instanceof JouerId))
			return false;
		JouerId castOther = (JouerId) other;

		return ((this.getNumInd() == castOther.getNumInd()) || (this.getNumInd() != null
				&& castOther.getNumInd() != null && this.getNumInd().equals(castOther.getNumInd())))
				&& ((this.getNumFilm() == castOther.getNumFilm()) || (this.getNumFilm() != null
						&& castOther.getNumFilm() != null && this.getNumFilm().equals(castOther.getNumFilm())))
				&& ((this.getRole() == castOther.getRole()) || (this.getRole() != null && castOther.getRole() != null
						&& this.getRole().equals(castOther.getRole())));
	}

	public int hashCode() {
		int result = 17;

		result = 37 * result + (getNumInd() == null ? 0 : this.getNumInd().hashCode());
		result = 37 * result + (getNumFilm() == null ? 0 : this.getNumFilm().hashCode());
		result = 37 * result + (getRole() == null ? 0 : this.getRole().hashCode());
		return result;
	}

}
