[hibernate-dev] [Search] proposing an alternative to depth in @IndexedEmbedded

Hardy Ferentschik hardy at hibernate.org
Fri Aug 26 04:14:41 EDT 2011


> Option 1:  Explicit inclusion only
> @IndexPaths(
>    paths={
>            @IndexPath("a.b.c"),
>            @IndexPath("d.e")
>        }
> )
> private SomeType type;

@IndexPath allows for further extension, but I could live with simple  
strings as well.


> I would be ecstatic if just @IndexPaths was added in the near future.   
> It would be cleanly separated from @IndexEmbedded and potential for  
> confusion around depth.  Then if the community desires it, or makes some  
> noise about the lack of the prune/exclude option, that can be added  
> later with no impact to the @IndexPaths approach.

+1

--hardy



More information about the hibernate-dev mailing list