Package org.hibernate.search.jpa
Class Search
java.lang.Object
org.hibernate.search.jpa.Search
Deprecated.
Helper class that should be used when building a FullTextEntityManager
- Author:
- Emmanuel Bernard, Hardy Ferentschik
-
Method Summary
Modifier and TypeMethodDescriptionstatic FullTextEntityManagergetFullTextEntityManager(javax.persistence.EntityManager em) Deprecated.UseSearch.session(EntityManager)instead.
-
Method Details
-
getFullTextEntityManager
@Deprecated public static FullTextEntityManager getFullTextEntityManager(javax.persistence.EntityManager em) Deprecated.UseSearch.session(EntityManager)instead.Build a full text capable EntityManager The underlying EM implementation has to be Hibernate EntityManager The created instance depends on the passed Session: closing either of them will close both instances. They both share the same persistence context.- Parameters:
em- the entityManager instance to use- Returns:
- a FullTextEntityManager, wrapping the passed EntityManager
- Throws:
IllegalArgumentException- if passed null
-
Searchinstead.