hibernate configuration moved to a more appropriate location