Skip to content

Commit 91aee82

Browse files
committed
buildSessionFactory() should return a sessionFactory
The example does not compile for obvious reason :)
1 parent 9aebcf6 commit 91aee82

File tree

1 file changed

+1
-1
lines changed
  • documentation/src/main/docbook/manual/en-US/content

1 file changed

+1
-1
lines changed

documentation/src/main/docbook/manual/en-US/content/tutorial.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -589,7 +589,7 @@ public class HibernateUtil {
589589
private static SessionFactory buildSessionFactory() {
590590
try {
591591
// Create the SessionFactory from hibernate.cfg.xml
592-
new Configuration().configure().buildSessionFactory(
592+
return new Configuration().configure().buildSessionFactory(
593593
new StandardServiceRegistryBuilder().build() );
594594
}
595595
catch (Throwable ex) {

0 commit comments

Comments
 (0)