from the forum mailing list : http://lists.jboss.org/pipermail/hibernate-dev/2015-May/012775.html
For example, if I index the following entity:
{code} @Indexed public static class ExampleEntity {
@Field(store = Store.YES) Integer someInteger;
...
@Field(store = Store.YES) @IndexedEmbedded List<Integer> someCollection; } {code} and than add a projection on "someCollection"
{code}EntityInfo.getProjection()[0]{code} will only return the first result of the collection instead of returning a List<Integer>.
|