package com.manning.hsia.dvdstore;
import org.apache.lucene.analysis.standard.StandardAnalyzer;
import org.hibernate.search.annotations.*;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
@Entity
@Indexed
@Analyzer(impl = StandardAnalyzer.class)
public class Furniture {
@Id @GeneratedValue @DocumentId
private Integer id;
@Field(index = Index.TOKENIZED, store = Store.YES )
private String color;
public Integer getId() {
return id;
}
public void setId(Integer id) {
this.id = id;
}
public String getColor() {
return color;
}
public void setColor(String color) {
this.color = color;
}
}