Updated hibernate config generation