[hibernate-dev] [Search] Why is global @AnalyzerDefs scanning limited to @Entity?

Sanne Grinovero sanne at hibernate.org
Thu Jun 20 12:45:07 EDT 2013


Great, so maybe we should just do that.

BTW, slightly unrelated, but in the same style it always bothered me
that @NamedQuery definitions need to be specified on entities.
Granted they often relate to a specific entity, but not always, and in
some cases they are better maintained close to their business logic,
or organised by functionality.

Sanne

On 20 June 2013 17:41, Hardy Ferentschik <hardy at hibernate.org> wrote:
>
> On 20 Jan 2013, at 6:39 PM, Sanne Grinovero <sanne at hibernate.org> wrote:
>> Hardy, while moving to Jandex would it be possible - and efficient -
>> for us to just find all @AnalyzerDefs on the user classpath (without
>> these necessarily needing to be mapped entities) ?
>
> Absolutely!
>
> --Hardy
>


More information about the hibernate-dev mailing list