Hibernate Search Managed Classes Example

WARNING - TOPIC NOT WRITTEN - TOPIC ID: 2212

This topic has not yet been written. The content below is from the topic description.
Lets assume that your application contains the Hibernate managed classes example.Book and example.Author and you want to add free text search capabilities to your application in order to search the books contained in your database. Example 1.4. Example entities Book and Author before adding Hibernate Search specific annotations package example; ... @Entity public class Book {   @Id   @GeneratedValue   private Integer id;    private String title;     private String subtitle;    @ManyToMany    private Set  authors = new HashSet();   private Date publicationDate;      public Book() {}       // standard getters/setters follow here   ... } package example; ... @Entity public class Author {   @Id   @GeneratedValue   private Integer id;   private String name;   public Author() {}      // standard getters/setters follow here   ... }