[hibernate-dev] [Search] Index embedded and id property of embedded entity

Guillaume Smet guillaume.smet at gmail.com
Wed May 7 03:10:00 EDT 2014


Hi,

On Tue, May 6, 2014 at 9:43 PM, Hardy Ferentschik <hardy at hibernate.org> wrote:
> I think I favour #2 atm, since it seems more symmetric.

I'm also in favour of #2.

> On top of this we seem to agree that it is a good idea to set the default depth value of @IndexedEmbedded to 0. This avoids the change in default values,
> when includePaths is used. As a side effect the default @IndexedEmbedded annotation becomes a no-op and should be treated as an invalid configuration.
> The choice here is between:
>
> #1 Log warning and move on
> #2 Throw an exception due to invalid configuration
>
> My choice would be #2 again.

Same here. Otherwise, it will break (mostly) silently a lot of
applications out there.

-- 
Guillaume


More information about the hibernate-dev mailing list