I found it nonsense, since hibernate settings are usually allocated in xml persistence.
Can you retrieve the sessionfactory only by using the hibernate settings allocated in persistence.xml? or do I need to replicate ORM settings to hibernate.cfg.xml?