HelloI've found only solutions with SessionFactory but it needs separate xml files and method getting connection is depracated. Is there another advised method to do that?