/*
* Hibernate Search, full-text search for your domain model
*
* License: GNU Lesser General Public License (LGPL), version 2.1 or later
* See the lgpl.txt file in the root directory or <http://www.gnu.org/licenses/lgpl-2.1.html>.
*/
package org.hibernate.search.test.query;
import javax.persistence.Entity;
import javax.persistence.Id;
import org.hibernate.search.annotations.DocumentId;
import org.hibernate.search.annotations.Field;
import org.hibernate.search.annotations.Indexed;
import org.hibernate.search.annotations.Store;
import org.hibernate.search.annotations.TermVector;
/**
* @author John Griffin
*/
@Entity
@Indexed
public class ElectricalProperties {
private int id;
private String content;
public ElectricalProperties() {
}
public ElectricalProperties(int id, String content) {
this.id = id;
this.content = content;
}
@Field(store = Store.YES, termVector = TermVector.WITH_POSITION_OFFSETS)
public String getContent() {
return content;
}
public void setContent(String content) {
this.content = content;
}
@Id
@DocumentId
public int getId() {
return id;
}
public void setId(int id) {
this.id = id;
}
}