Moved User hibernate configuration from java sources to resources.