buildSessionFactory() should return a sessionFactory

The example does not compile for obvious reason :)
This commit is contained in:
David Pilato 2015-03-05 09:04:29 +01:00 committed by Sanne Grinovero
parent 7acd1ebdf1
commit ef3f00ad9f
1 changed files with 1 additions and 1 deletions

View File

@ -589,7 +589,7 @@ public class HibernateUtil {
private static SessionFactory buildSessionFactory() { private static SessionFactory buildSessionFactory() {
try { try {
// Create the SessionFactory from hibernate.cfg.xml // Create the SessionFactory from hibernate.cfg.xml
new Configuration().configure().buildSessionFactory( return new Configuration().configure().buildSessionFactory(
new StandardServiceRegistryBuilder().build() ); new StandardServiceRegistryBuilder().build() );
} }
catch (Throwable ex) { catch (Throwable ex) {