public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		PreuTipusHabitacioId other = (PreuTipusHabitacioId) obj;
		if (nomTipusHabitacio == null) {
			if (other.nomTipusHabitacio != null)
				return false;
		} else if (!nomTipusHabitacio.equals(other.nomTipusHabitacio))
			return false;
		if (nomHotel == null) {
			if (other.nomHotel != null)
				return false;
		} else if (!nomHotel.equals(other.nomHotel))
			return false;
		return true;
	}