buildSessionFactory() should return a sessionFactory
The example does not compile for obvious reason :)
This commit is contained in:
parent
7acd1ebdf1
commit
ef3f00ad9f
|
@ -589,7 +589,7 @@ public class HibernateUtil {
|
|||
private static SessionFactory buildSessionFactory() {
|
||||
try {
|
||||
// Create the SessionFactory from hibernate.cfg.xml
|
||||
new Configuration().configure().buildSessionFactory(
|
||||
return new Configuration().configure().buildSessionFactory(
|
||||
new StandardServiceRegistryBuilder().build() );
|
||||
}
|
||||
catch (Throwable ex) {
|
||||
|
|
Loading…
Reference in New Issue