[hibernate-dev] [Search] Why is global @AnalyzerDefs scanning limited to @Entity?
hardy at hibernate.org
Thu Jun 20 12:36:51 EDT 2013
On 20 Jan 2013, at 6:22 PM, Guillaume Smet <guillaume.smet at gmail.com> wrote:
> We would like to declare our global @AnalyzerDefs on a class which
> isn't a specific entity.
> For the @TypeDefs of Hibernate, we do it by declaring the @TypeDefs on
> a class annotated with @MappedSuperClass but with @AnalyzerDefs, we
> are forced to declare them on a concrete @Entity.
On an @Entity? Don't you mean @Indexed?
@Entity is a JPA annotation and @AnalyzerDefs is Hibernate Search annotation.
We don't process (except @Id) JPA annotations in Search.
More information about the hibernate-dev