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