public final class SearchIntegratorHelper extends Object
SearchIntegrator
from
an Hibernate SessionFactory
or a standard JPA
EntityManagerFactory
.Modifier and Type | Method and Description |
---|---|
static SearchIntegrator |
extractFromEntityManagerFactory(javax.persistence.EntityManagerFactory emf)
Extract a
SearchIntegrator from an active EntityManagerFactory . |
static SearchIntegrator |
extractFromSessionFactory(org.hibernate.SessionFactory sf)
Extract a
SearchIntegrator from an active SessionFactory . |
public static SearchIntegrator extractFromSessionFactory(org.hibernate.SessionFactory sf)
SearchIntegrator
from an active SessionFactory
.sf
- the active SessionFactorypublic static SearchIntegrator extractFromEntityManagerFactory(javax.persistence.EntityManagerFactory emf)
SearchIntegrator
from an active EntityManagerFactory
.
The provided EntityManagerFactory must be implemented by an Hibernate EntityManagerFactory.emf
- the active EntityManagerFactoryCopyright © 2006-2019 Red Hat, Inc. and others. Licensed under the GNU Lesser General Public License (LGPL), version 2.1 or later.