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
parent 9aebcf64e7
commit 91aee82b07
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) {