Commits

Micha Kops committed 7a8255d

Unneccessary @DocumentId declaration removed

  • Participants
  • Parent commits 60a16f8

Comments (0)

Files changed (2)

File src/main/java/com/hascode/tutorial/Book.java

 import javax.persistence.Lob;
 
 import org.hibernate.search.annotations.Analyze;
-import org.hibernate.search.annotations.DocumentId;
 import org.hibernate.search.annotations.Field;
 import org.hibernate.search.annotations.Indexed;
 import org.hibernate.search.annotations.Store;
 
 	@Id
 	@GeneratedValue
-	@DocumentId
 	public Long getId() {
 		return id;
 	}

File src/main/java/com/hascode/tutorial/Library.java

 		List<Book> result = fullTextQuery.getResultList();
 		printResults(result);
 
-		// oldschool JPA search
+		// JPA search
 		Query query = em
 				.createQuery("SELECT b FROM Book b WHERE b.author=:author");
 		query.setParameter("author", "fred");