Hi all,
It seems applying the annotation Lucene annotations to a field is not supported although applying it to a property is ok.
Code:
@MappedSuperclass
@AccessType("field")
public abstract class BaseEntity
{
@Id
@GeneratedValue(generator="ID_STORE")
@Keyword(id=true) -> NOT SUPPORTED
private Long id;
...
}
Code:
@MappedSuperclass
@AccessType("property")
public abstract class BaseEntity
{
private Long id;
@Id
@GeneratedValue(generator="ID_STORE")
@Keyword(id=true) -> SUPPORTED
public Long getId() { return this.id; }
...
}