Changing long values to number because incompatibility in hibernate inside openmrs 1.8 and 1.9.