with out hibernate.cfg file ,can we initialize the database connection in hibernate.is it possible
Replied on May 10, 2013
Yes, we can initialize database connection without using hibernate.cfg.xml.
In Hibernate Annotation, AnnotationConfiguration provides the methods to configure database connection. If we do not want to use hibernate.cfg.xml, we need not to use .configuire method while building session factory. Find the link for example.
We are a group of software developers. We enjoy learning and sharing technologies. To improve the site's content, your valuable suggestions are most welcome. Thanks
Email : concretepage@gmail.com