Class Search


  • @Deprecated
    public final class Search
    extends Object
    Deprecated.
    Use Search instead.
    Helper class to get a FullTextSession from a regular ORM session.
    Author:
    Emmanuel Bernard, Hardy Ferentschik
    • Method Detail

      • getFullTextSession

        @Deprecated
        public static FullTextSession getFullTextSession​(Session session)
        Deprecated.
        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