buildSessionFactory() should return a sessionFactory
The example does not compile for obvious reason :)
This commit is contained in:
parent
9aebcf64e7
commit
91aee82b07
|
@ -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) {
|
||||||
|
|
Loading…
Reference in New Issue