@Test public void testBuildSessionFactoryWithDefaultOptions() { SessionFactoryBuilder sessionFactoryBuilder = getSessionFactoryBuilder(); SessionFactory sessionFactory = sessionFactoryBuilder.buildSessionFactory(); assertSame( EmptyInterceptor.INSTANCE, sessionFactory.getSessionFactoryOptions().getInterceptor() ); assertTrue( EntityNotFoundDelegate.class.isInstance( sessionFactory.getSessionFactoryOptions().getEntityNotFoundDelegate() ) ); sessionFactory.close(); }
@Override public SessionFactory buildSessionFactory() { return new SessionFactoryImpl(metadata, options, null ); }
SessionFactoryBuilderImpl implements SessionFactoryBuilder { @Override public SessionFactory buildSessionFactory() { return new SessionFactoryImpl(metadata, options, null ); } }
SessionFactoryBuilderImpl implements SessionFactoryBuilder { @Override public SessionFactory buildSessionFactory() { return new SessionFactoryImpl(metadata, options, null ); } SessionFactoryBuilderImpl(MetadataImplementor metadata); }
SessionFactoryBuilderImpl implements SessionFactoryBuilder { @Override public SessionFactory buildSessionFactory() { return new SessionFactoryImpl(metadata, options, null ); } SessionFactoryBuilderImpl(MetadataImplementor metadata); @Override SessionFactoryBuilder with(Interceptor interceptor); @Override SessionFactoryBuilder with(EntityNotFoundDelegate entityNotFoundDelegate); @Override SessionFactory buildSessionFactory(); }
SessionFactoryBuilderImpl implements SessionFactoryBuilder { @Override public SessionFactory buildSessionFactory() { return new SessionFactoryImpl(metadata, options, null ); } SessionFactoryBuilderImpl(MetadataImplementor metadata); @Override SessionFactoryBuilder with(Interceptor interceptor); @Override SessionFactoryBuilder with(EntityNotFoundDelegate entityNotFoundDelegate); @Override SessionFactory buildSessionFactory();  }