Added hibernate code to Measurement