[hibernate-issues] [Hibernate-JIRA] Updated: (HSEARCH-1112) Allow IndexedEmbedded/includePaths to support multiple root entities
Sanne Grinovero (JIRA)
noreply at atlassian.com
Mon Apr 30 06:43:52 EDT 2012
[ https://hibernate.onjira.com/browse/HSEARCH-1112?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Sanne Grinovero updated HSEARCH-1112:
-------------------------------------
Labels: candidate_for_next (was: )
Marc, thanks that's a very good point. Do you plan to contribute this improvement? If not, would you contribute a testcase? thanks!
> Allow IndexedEmbedded/includePaths to support multiple root entities
> --------------------------------------------------------------------
>
> Key: HSEARCH-1112
> URL: https://hibernate.onjira.com/browse/HSEARCH-1112
> Project: Hibernate Search
> Issue Type: Improvement
> Reporter: Marc Schipperheyn
> Labels: candidate_for_next
>
> Currently includePaths can only be used in a root entity A.
> If you use includePaths also in the embedded entity that is a root entity itself, any paths from A to C will fail, because using includePaths in the embedded entity B will set depth to 0.
> In most cases, this is ok, however, it can be very limiting and this limitation shouldn't be there.
> {code}
> @Indexed
> public class A{
> @IndexedEmbedded(includePaths={"id","c.date"}
> public B getB(){
> return b;
> }
> }
> @Indexed
> public class B{
> @IndexedEmbedded(includePaths={"label"}
> public C getC(){
> return c;
> }
> }
> {code}
> The above code will lead c.date to not be indexed because of includePaths="label".
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the hibernate-issues
mailing list