Removing hibernate dependency