File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Object Relational Mapping and the fly likes How to obtain Session factory? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Databases » Object Relational Mapping
Bookmark "How to obtain Session factory?" Watch "How to obtain Session factory?" New topic
Author

How to obtain Session factory?

Pankaj Shet
Ranch Hand

Joined: Sep 08, 2006
Posts: 272

Hi friends,
There are many ways to obtain session factory.
Two of them which I know are Using HibernateUtil and Configuration object.
What are others ways to obtain session factory and which one to use when??
what is the difference between Using HibernateUtil and Using Configuration object?
Thanks and Regards,
-Pankaj

PANKAJ SHET
B.Sc.(I.T.), S.C.J.P., S.C.W.C.D., PGDAC(CDAC)
 
 
subject: How to obtain Session factory?