ulrich (7) [Avatar] Offline
#1
Hi all,

//Java Persistence APIs
public List findByTitle(String words) {
FullTextEntityManager ftEntityManager = EntityManagerHolder.getFullTextEntityManager();
org.apache.lucene.search.Query luceneQuery = buildLuceneQuery(words);
javax.persistence.Query query = ftEm.createFullTextQuery(luceneQuery);
return query.list();
}

must be

//Java Persistence APIs
public List findByTitle(String words) {
FullTextEntityManager ftEntityManager = EntityManagerHolder.getFullTextEntityManager();
org.apache.lucene.search.Query luceneQuery = buildLuceneQuery(words);
javax.persistence.Query query = ftEntityManager.createFullTextQuery(luceneQuery);
return query.list();
}

Ulrich

Message was edited by:
ulrich
emmanuel.bernard (101) [Avatar] Offline
#2
Re: Example 6.5 have mistake
good catch, it's fixed