On Nov 4, 2011 7:45 AM, "Rickard Öberg" <[email protected]> wrote: > > On 11/4/11 17:29 , Daniel Yokomizo wrote: > >> What are the projection methods that you would like to see? What are > >> common usecases? > > > > Supporting @java.beans.ConstructorProperties is nice because we can use > > immutable objects as dtos. > > Right, that is a good point, and that will definitely be supported. > > I was more thinking about what kind of ways do you want to transform the > result to objects. QueryDSL has a TON of methods, most of which I think > are mixing concepts wildly: > http://www.querydsl.com/static/querydsl/2.2.3/apidocs/com/mysema/query/Projectable.html > > The methods with "distinct", for example, are done by the DSL itself, > rather than in the projection. Similarly, "unique" and "single" I think > are probably better done by using a functional library on top of an > Iterable (this is available in Qi4j, and most other functional libraries > that work with Iterables as well), i.e. no need to add to the basic > interface. > > But are there other legitimate ways of transforming the result to > objects? Or is iterable(result,resultType) enough?
Is there a raw type if nothing is provided (e.g. Map<String,Object> with alias,result)? With something like this the programmer can use any mapping tool after. But would be nice to have json support. > /Rickard > > -- > Rickard Öberg > Developer > Neo Technology > Twitter: @rickardoberg, Skype: rickardoberg > _______________________________________________ > Neo4j mailing list > [email protected] > https://lists.neo4j.org/mailman/listinfo/user _______________________________________________ Neo4j mailing list [email protected] https://lists.neo4j.org/mailman/listinfo/user

