Package org.hibernate.search.impl

Examples of org.hibernate.search.impl.FullTextSessionImpl


  public static FullTextSession getFullTextSession(Session session) {
    if (session instanceof FullTextSessionImpl) {
      return (FullTextSession) session;
    }
    else {
      return new FullTextSessionImpl(session);
    }
  }
View Full Code Here


    @BeforeMethod
    protected void beforeMethod() throws Exception {
        seam.reset()
                .use("entityManager", Search.getFullTextEntityManager(getEm()))
                .use("entityManagerFactory", getEmf())
                .use("session", new FullTextSessionImpl(getSession()))
                .use(JpaIdentityStore.AUTHENTICATED_USER,
                        seam.autowire(AccountDAO.class).getByUsername("demo"))
                .useImpl(LocaleServiceImpl.class)
                .useImpl(TranslationMemoryServiceImpl.class)
                .useImpl(VersionStateCacheImpl.class)
View Full Code Here

        MockitoAnnotations.initMocks(this);
        seam.reset()
                .use("entityManager",
                        Search.getFullTextEntityManager(getEm()))
                .use("entityManagerFactory", getEmf())
                .use("session", new FullTextSessionImpl(getSession()))
                .useImpl(IndexingServiceImpl.class)
                .ignoreNonResolvable();
        seam.autowire(SearchIndexManager.class).reindex(true, true, false);
        LocaleDAO localeDAO = seam.autowire(LocaleDAO.class);
View Full Code Here

        // runLiquibase();

        seam.reset()
                .use("entityManager", Search.getFullTextEntityManager(getEm()))
                .use("entityManagerFactory", getEmf())
                .use("session", new FullTextSessionImpl(getSession()))
                .use(JpaIdentityStore.AUTHENTICATED_USER,
                        seam.autowire(AccountDAO.class).getByUsername("demo"))
                .useImpl(LocaleServiceImpl.class)
                .useImpl(TranslationMemoryServiceImpl.class)
                .useImpl(VersionStateCacheImpl.class)
View Full Code Here

        service =
                seam.reset()
                        .use("entityManager",
                                Search.getFullTextEntityManager(getEm()))
                        .use("entityManagerFactory", getEmf())
                        .use("session", new FullTextSessionImpl(getSession()))
                        .useImpl(IndexingServiceImpl.class)
                        .ignoreNonResolvable()
                        .autowire(TranslationMemoryServiceImpl.class);
        seam.autowire(SearchIndexManager.class).reindex(true, true, false);
        LocaleDAO localeDAO = seam.autowire(LocaleDAO.class);
View Full Code Here

        seam.reset()
            .use("localeServiceImpl", localeService)
            .use("documentDAO", new DocumentDAO(getSession()))
            .use("projectIterationDAO", new ProjectIterationDAO(getSession()))
            .use("entityManager", new FullTextEntityManagerImpl(getEm()))
            .use("session", new FullTextSessionImpl(getSession()));
        // @formatter:on
        jaHLocale = getEm().find(HLocale.class, 3L);
        when(
                localeService.validateLocaleByProjectIteration(localeId,
                        workspaceId.getProjectIterationId().getProjectSlug(),
View Full Code Here

                        .use("documentDAO", new DocumentDAO(getSession()))
                        .use("projectIterationDAO",
                                new ProjectIterationDAO(getSession()))
                        .use("entityManager",
                                new FullTextEntityManagerImpl(getEm()))
                        .use("session", new FullTextSessionImpl(getSession()))
                        .use("identity", identity)
                        .use("textFlowDAO", new TextFlowDAO(getSession()))
                        .use("transUnitTransformer", transUnitTransformer)
                        .use("webtrans.gwt.GetTransUnitsNavigationHandler",
                                getTransUnitsNavigationService)
View Full Code Here

  public static FullTextSession getFullTextSession(Session session) {
    if ( session instanceof FullTextSessionImpl ) {
      return ( FullTextSession ) session;
    }
    else {
      return new FullTextSessionImpl( session );
    }
  }
View Full Code Here

TOP

Related Classes of org.hibernate.search.impl.FullTextSessionImpl

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.