HHH-8674 - fixed usage of deprecated method Configuration#buildSessionFa...

https://hibernate.atlassian.net/browse/HHH-8674
Fixed usage of deprecated method org.hibernate.cfg.Configuration#buildSessionFactory()