what is Configuration class in Hibernate?


Configuration is a class which is available in “org.hibernate.cfg “package .



  • Hibernate runtime system will be stored by installing configuration class 1st .

        Configuration class has two implement methods as follows: --------
  Configuration configure()
  Configuration configure(string)

  • Configure () method is responsible to read all the property defined in hibernate configuration documents and all hibernate mapping documents.


  • After reading all the properties from hibernate configuration and mapping documents configuration object is responsible to create the SessionFactory object.
  • Once the session factory is created there is no use with configuration object.


1 comment :