Here's a clip from the entity class. I removed a lot of other fields (many of which have relationships/joins), but for testing only one non-joined field is annotated for indexing.
Code:
@Entity
@Table(name = "AV_T_PART_CATEGORY")
@Indexed
public class AvTPartCategory implements java.io.Serializable {
public static final long serialVersionUID = -1;
private Long partCtgrId;
private String partCtgrName;
// Transient attributes
@Transient
private String indexTimestamp;
public AvTPartCategory() {
}
@Id
@Column(name = "PART_CTGR_ID", nullable = false, precision = 22, scale = 0)
@NotNull
public Long getPartCtgrId() {
return this.partCtgrId;
}
public void setPartCtgrId(Long partCtgrId) {
this.partCtgrId = partCtgrId;
}
@Column(name = "PART_CTGR_NAME", nullable = false, length = 80)
@NotNull
@Length(max = 80)
@Field(index = Index.UN_TOKENIZED, store = Store.YES)
public String getPartCtgrName() {
return this.partCtgrName;
}
public void setPartCtgrName(String partCtgrName) {
this.partCtgrName = partCtgrName;
}
}
Is there anything obviously wrong with this code? Any known issues w/Hibernate Search and JBoss 6.0.0.M3?
Thanks,
Greg