Multiple choice technology web technology

How to get SessoionFactory from configuration object (config) ?

  1. config.createSessionFactory()

  2. config.getSessionFactory()

  3. config.buildSessionFactory()

  4. config. SessionFactory.newInstance()

Reveal answer Fill a bubble to check yourself
C Correct answer
Explanation

In Hibernate 3 and earlier, the standard way to obtain a SessionFactory from a Configuration object is by calling config.buildSessionFactory(). The other methods do not exist on the configuration object.