Home  >  Forum  >  Hibernate
Post New Query

with out hibernate.cfg file ,can we initialize the database connection

joined on
May 08,2013
Asked on May 08,2013
with out hibernate.cfg file ,can we  initialize the database connection in hibernate.is it possible
joined on
March 18,2013
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.

joined on
October 10,2013
Replied on October 13,2013

Good Example. Its working.

Write Answer

Copyright ©2017 concretepage.com, all rights reserved |Privacy Policy | Contact Us