@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		
		result = prime * result
				+ ((compartment == null) ? 0 : compartment.hashCode());
		result = prime
				* result
				+ ((hasOnlySubstanceUnits == null) ? 0 : hasOnlySubstanceUnits
						.hashCode());
		result = prime * result + ((id == null) ? 0 : id.hashCode());
		result = prime * result
				+ ((initialAmount == null) ? 0 : initialAmount.hashCode());
		return result;
	}