Inherit @Indexed annotations by default

Description

This is still creating confusion, and I can't think myself of why it shouldn't be inherited.

https://forum.hibernate.org/viewtopic.php?f=9&t=1024718

Environment

None

Activity

Show:
Emmanuel Bernard
November 11, 2012, 12:30 AM

That would require class path scanning.

Sanne Grinovero
November 11, 2012, 6:07 AM

Wouldn't it require scanning just for entities? I'd take it for granted that anything not being @Entity is going to be ignored by Hibernate. In the context of Hibernate Search I think we should be consistent with the "Hibernate way".

Also should we allow implementation details / complexity to break user expectations of a natural behaviour?

Emmanuel Bernard
November 11, 2012, 1:25 PM

I am concerned about adding ORM specific behaviors to hibernate search. What should happen for other event generators?

Emmanuel Bernard
October 4, 2013, 1:26 PM

Would you be OK in not having subclasses be considered in the Infinispan and non Hibernate ORM case (ad-hoc or alternative sources)?
I guess I could live with an option like SearchConfiguration#considerSubclassesAsIndexed().

Assignee

Yoann Rodière

Reporter

Sanne Grinovero

Labels

None

Suitable for new contributors

None

Feedback Requested

None

Components

Fix versions

Priority

Minor
Configure