[jbossseam-issues] [JBoss JIRA] Commented: (JBSEAM-651) Hibernate Search integration

Christian Bauer (JIRA) jira-events at lists.jboss.org
Fri Jul 6 07:53:01 EDT 2007


    [ http://jira.jboss.com/jira/browse/JBSEAM-651?page=comments#action_12368024 ] 
            
Christian Bauer commented on JBSEAM-651:
----------------------------------------

Need to document that this old pattern:

        EntityManager em = (EntityManager) Component.getInstance("entityManager");
        Session session = (Session) em.getDelegate();
        DirectoryProvider dirProvider = ContextHelper.getSearchFactory(session).getDirectoryProvider(indexedEntity.getClazz());

throws:

java.lang.ClassCastException: org.jboss.seam.persistence.FullTextHibernateSessionProxy
	org.hibernate.search.util.ContextHelper.getSearchFactory(ContextHelper.java:17)

or Emmanuel's stuff needs to be proxy aware or removed. Not sure what the value of ContextHelper is when you can get the SearchFactory on the ftSession.

> Hibernate Search integration
> ----------------------------
>
>                 Key: JBSEAM-651
>                 URL: http://jira.jboss.com/jira/browse/JBSEAM-651
>             Project: JBoss Seam
>          Issue Type: Feature Request
>          Components: Core
>            Reporter: Gavin King
>         Assigned To: Gavin King
>             Fix For: 2.0.0.BETA1
>
>


-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the seam-issues mailing list