Add support for projection (ie read the data from the index only)

Description

None

Activity

Show:

shareef shaikFebruary 23, 2010 at 11:14 AM

Dear Emmanuel
I have a problem working with projections. consider the following scenario,
Parent(Long id, Set<Child> children)
Child(EmbeddedId(Long id, Integer versionNo), Parent parent)
Now, I have indexed Parent and Child is contained in it. When I tried to apply projections on Child columns, I am not able to get the values. It works fine for associations and collections with a single primary key, fails only for the composite key cases. Please comment on the same.
Due to copy write issues, I cannot share the log, or the code.

Emmanuel BernardMay 17, 2007 at 9:20 PM

fullTextQuery.setProjection("id", "summary", "author.name");
List<Object[]> result = (List<Object[]>) fullTextQuery.list();

Fixed

Details

Assignee

Reporter

Components

Fix versions

Priority

Created May 17, 2007 at 1:49 AM
Updated February 23, 2010 at 11:14 AM
Resolved May 17, 2007 at 9:20 PM