How can I create sessionfactory in Hibernate? If you can explain me with example that would be great.
Here is an Example of creating Session Factory in Hibernate 4
Besides, read about Hibernate 4 and Session Factory with the links below:
Hibernate Session Factory
I hope this solves your query..