Hi,
I tried to integrate Hibernate Search and Hibernate Shard, But there is incompatibility at the basic level.
Session session = sessionFactory.openSession();
FullTextSession fullTextSession = Search.createFullTextSession(session);
As you see ShardedSessionImpl didn't implement EventSource.(please see the class hierarchy) .
So,There is class cast Exception being generated.
Following full exception message...
Exception in thread "main" java.lang.ClassCastException: org.hibernate.shards.session.ShardedSessionImpl cannot be cast to org.hibernate.event.EventSource
This problem was referenced earlier
Here, But no solution provided.
Any help is highly appreciated.