Hello,
I use hibernate integrated with spring. All mappings are done via annotations.
One of the requirements is fast application start up. But it's not the case for now.
Running the application under jprofiler shows that 70% are spent in HibernatePersistence.createContainerEntiyManager. This time is split between Configuration.buildMapping and Configuration.buildSessionFactory roughly in a half.
at first sight I'd like to put all mappings into a file.xml and don't use reflection. Is it worth to do so? SessionFactoryImpl is a Serializable object. Could we simply read it from disk instead of building a fresh one? Is there a way to perform faster?
thank you in advance, alexander
|