[hibernate-issues] [Hibernate-JIRA] Created: (HSEARCH-1112) Allow IndexedEmbedded/includePaths to support multiple root entities
Marc Schipperheyn (JIRA)
noreply at atlassian.com
Sat Apr 28 15:05:48 EDT 2012
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
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