0
我索引一个类,其超有以下注释:Hibernate Search的注解不是继承
@Indexed @Entity @Inheritance(strategy = InheritanceType.JOINED)
同样@Inheritance注解是在子类。超类的注释全部在方法上。我要在超类上索引的字段被忽略:
@Field(index=Index.UN_TOKENIZED,store=Store.YES)
@FieldBridge(impl=org.hibernate.search.bridge.builtin.BooleanBridge.class)
@Type(type="yes_no")
public boolean isFlagged() {
return flagged;
}
超类只有标记的属性和ID。 ID显示正常,因为它有@Id注释,但我不确定为什么标记不被索引。我发现this post但它没有给出明确的答案。我可能做错了什么?
感谢您的提示。 @Indexed在超类和子类上。我会看看我能否得到一个小样本并发布。 – User1