Hi everybody,
as I got my problem with mappings in the "hibernate.cfg.xml"-file solved in
another thread, I am now wondering about the average startup/mapping time of hibernate.
I am building a fat client with Java8 and JavaFX, using hibernate 5.0.0 for persistence with a "hibernate.cfg.xml" file for configuration and ".hbm.xml"-files for each persisted class.
Turning on hibernate increases the startup-time significantly. Right now, I have about 30 persisted classes with - as I would say - simple complexity and only few members. When building the SessionFactory with
the code pauses after the info-message
INFO: HCANN000001: Hibernate Commons Annotations {5.0.0.Final} for about 15 seconds - this time varies with the number of mapped classes, so each mapping seems to take about 500ms. Is this normal behaviour??? As the application is still growing, the number of persisted classes will increase as well, making the startup time even longer...
I found lots of resources about performance tuning of queries on the internet, but nothing on the average startup time.
Could anybody tell me, how I can analyse, what is happening while hibernate is mapping the classes and whether it is possible to speed up this process?
Andy