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.