Package org.hibernate.search
Class Search
- java.lang.Object
-
- org.hibernate.search.Search
-
@Deprecated public final class Search extends Object
Deprecated.UseSearchinstead.Helper class to get aFullTextSessionfrom a regular ORM session.- Author:
- Emmanuel Bernard, Hardy Ferentschik
-
-
Method Summary
All Methods Static Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static FullTextSessiongetFullTextSession(Session session)Deprecated.UseSearch.session(Session)instead.
-
-
-
Method Detail
-
getFullTextSession
@Deprecated public static FullTextSession getFullTextSession(Session session)
Deprecated.UseSearch.session(Session)instead.Creates a FullTextSession from a regular Session. The created instance depends on the passed Session: closing either of them will close both instances. They both share the same persistence context.- Parameters:
session- the hibernate ORM session- Returns:
- the new FullTextSession, based on the passed Session
- Throws:
IllegalArgumentException- if passed null
-
-