[ 
https://issues.apache.org/jira/browse/TAP5-1178?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13263754#comment-13263754
 ] 

Lance commented on TAP5-1178:
-----------------------------

Adding this to your AppModule should allow you to @Inject FullTextSession

public static FullTextSession buildFullTextSession(final 
HibernateSessionManager sessionManager, PropertyShadowBuilder 
propertyShadowBuilder) {
   Object lazyLoader = new Object() {
      public FullTextSession getFullTextSession() {
         /// sessionManager is per thread
         return Search.getFullTextSession(sessionManager.getSession());
      }
   };
   return propertyShadowBuilder.build(lazyLoader, "fullTextSession", 
FullTextSession.class);
}
                
> Tapestry should include a module that automatically configures for Hibernate 
> Search
> -----------------------------------------------------------------------------------
>
>                 Key: TAP5-1178
>                 URL: https://issues.apache.org/jira/browse/TAP5-1178
>             Project: Tapestry 5
>          Issue Type: New Feature
>          Components: tapestry-hibernate
>    Affects Versions: 5.2
>            Reporter: Howard M. Lewis Ship
>
> It's common to use Hibernate Search (based on Lucene) on top of Hibernate 
> itself.  To make this work in Tapestry requires some careful overrides in 
> order to create and manage a FullTextSession instance, rather than a standard 
> Session instance.  However, its not much code.
> This could be in the form of a code donation from work I'm performing for a 
> client.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to