We can create SessionFactory in Hibernate 4 latest version, viz Hibernate 4.3.8 till now using the StandardServiceRegistryBuilder class. In prior version of hibernate we build the SessionFactory something like this

But the class org.hibernate.cfg.Configuration.buildSessionFactory() is deprecated in latest version…

Hibernate a popular orm framework was created by Gavin King in 2001 as an alternate to using EJB2 style entity beans. Hibernate architecture is layered and an Object-Relational Mapping solution for Java environments. Object-Relational mapping refers to the technique of…