@ Override public boolean configure ( final FeatureContext context ) { // Hibernate configuration. context . register ( new HibernateSessionFactory . Binder ( ) ) ; context . register ( new HibernateSessionFactoryFactory . Binder ( ) ) ; context . register ( new HibernateServiceRegistryFactory . Binder ( ) ) ; context . register ( new FulltextSearchFactoryFactory . Binder ( ) ) ; context . register ( new FulltextSessionFactory . Binder ( ) ) ; return true ; }
Register the HibernateFeature with the current application context .