I want to make a loading screen(Splash screen) for my Java SE app. And I am using Hibernate to as the ORM. The session factory creation takes sometime and I would like to know if there is a way to find how much time it takes for the Hibernate session factory to load?
Share
It’s not possible through an API so you’ll have to use a workaround.
Possible solutions:
org.hibernate.cfg.Configurationand whenever you add a resource or class you will update the “classes loaded” counter