Permalink
Browse files

HHH-8674 - fixed usage of deprecated method

Configuration#buildSessionFactory() in documentation
  • Loading branch information...
1 parent ef8efc7 commit cfcf5089be7fa54dc9533d32297fc075f607bb34 @brmeyer brmeyer committed Jan 28, 2014
Showing with 2 additions and 3 deletions.
  1. +2 −3 documentation/src/main/docbook/manual/en-US/content/tutorial.xml
@@ -589,9 +589,8 @@ public class HibernateUtil {
private static SessionFactory buildSessionFactory() {
try {
// Create the SessionFactory from hibernate.cfg.xml
- Configuration configuration = new Configuration();
- return configuration.configure().buildSessionFactory(new StandardServiceRegistryBuilder()
- .applySettings(configuration.getProperties()).build());
+ new Configuration().configure().buildSessionFactory(
+ new StandardServiceRegistryBuilder().build() );
}
catch (Throwable ex) {
// Make sure you log the exception, as it might be swallowed

0 comments on commit cfcf508

Please sign in to comment.