Class Search


  • @Deprecated
    public final class Search
    extends Object
    Deprecated.
    Use Search instead.
    Helper class that should be used when building a FullTextEntityManager
    Author:
    Emmanuel Bernard, Hardy Ferentschik
    • Method Detail

      • getFullTextEntityManager

        @Deprecated
        public static FullTextEntityManager getFullTextEntityManager​(javax.persistence.EntityManager em)
        Deprecated.
        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