Hi OK so I tried the normal annotation syntax to index a class property but it's not working on enum type variables. With a String variable I use this for example:
Code:
@Field(index = Index.UN_TOKENIZED, store = Store.YES)
@Column(name = "first_name")
protected String firstName;
But when I applied the same syntax to an enum variable it doesn't work:
Code:
@Field(index = Index.UN_TOKENIZED, store = Store.YES)
@Column(name = "type")
public enum Type{
AMATEUR,
ROOKIE
}
NetBeans says 'annotation type not applicable to this type of declaration'. Can anyone help me on this? I'm very new to Hibernate and Lucene. Thank you!