Hi every one
I am using hibernate search in my project.
As per the Hibernate Search API documentation
http://www.hibernate.org/hib_docs/search/api/org/hibernate/search/jpa/FullTextEntityManager.html
we can pass through mulitple entity Class as parameters to the createFullTextQuery method.
So if a book store site selling both books and magazines for example.
I need my search will works across these classes.
So this is my code for that purpose.
Code:
FullTextQuery query=( (FullTextEntityManager) entityManager ).createFullTextQuery(luceneQuery, Book.class, Magazine.class);
My question is at, the time of getting the result from FullTextQuery by using query.getResultList() what is the data type it would be.
i need to define the type of collection by using java generics types.
Code:
List searchResult=query.getResultList();
if it is Object type meant how can know the object type at the time of iterating the collection by using h:dataTable in jsf
any help please..
by
Thiagu.m