hi all,
I recognized that getting the first access (I mean creating the session factory, session and connection )in an application resumes more appreciable time than getting later accesses.
This time difference must be due to the parsing time of the mapping files in the first access.
I have an initialier class in my application, which do initiliazition in the openning of application. Here I want hibernate to parse these mapping files without creating any access.
I mean I want to seperate hibernate works in 2 steps;
In the beginning, hibernate go and parse all mapping files.
In the runtime application, hibernate go and get access.
How can I do this efficiently? Should I create an instance of session factory and call factory."anymethod" (any of the factory methods that calls parser such as buildSessionFactory)?
Can I do this without creating a factory instance?
_________________ -developer
|