<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><br><div><div>On 18 Feb 2013, at 16:01, Xavier Coulon &lt;<a href="mailto:xcoulon@redhat.com">xcoulon@redhat.com</a>&gt; wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Hello,<div><br></div><div>[This mail summaries a conversation that I started with Sanne and Emmanuel, off-list]</div><div><br></div><div>The current CacheQuery.list() method returns a List&lt;Object&gt;, which less handy to manipulate than a typed list (List&lt;Book&gt; for example).</div><div><br></div><div>My initial question is: could the CacheQuery.list() method be changed into something like CacheQuery.list(Book.class) which would return a List&lt;Book&gt; ?</div><div><br></div><div>After discussing this subject with Sanne and Emmanuel, it seems to be interesting but not so trivial, partially because of the way Infinispan supports Projections.&nbsp;</div><div>Which brings me to the suggestion where, in case of projections, the result list could be a List&lt;Book&gt; for which only of subset of the attributes would be set.&nbsp;</div><div><br></div><div>While another user opened a similar issue last week -nice coincidence- :&nbsp;<a href="https://issues.jboss.org/browse/ISPN-2826">https://issues.jboss.org/browse/ISPN-2826</a>, &nbsp;Sanne pointed me to&nbsp;<a href="https://issues.jboss.org/browse/ISPN-949">https://issues.jboss.org/browse/ISPN-949</a>&nbsp;which is about using something similar to ResultTransformers in Infinispan.&nbsp;</div></div></blockquote><div><br></div><div>Certainly something worth considering. &nbsp;Feel like contributing a patch?</div><br><blockquote type="cite"><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><br></div><div><br></div><div>Thanks,</div><div>Best regards,<br><div apple-content-edited="true">
/Xavier<br><br><br>
</div>
<br></div></div>_______________________________________________<br>infinispan-dev mailing list<br><a href="mailto:infinispan-dev@lists.jboss.org">infinispan-dev@lists.jboss.org</a><br>https://lists.jboss.org/mailman/listinfo/infinispan-dev</blockquote></div><br><div apple-content-edited="true">
<span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; border-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; border-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; border-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div>--</div><div>Manik Surtani</div><div><a href="mailto:manik@jboss.org">manik@jboss.org</a></div><div><a href="http://twitter.com/maniksurtani">twitter.com/maniksurtani</a></div><div><br></div><div><div>Platform Architect, JBoss Data Grid</div><div><a href="http://red.ht/data-grid">http://red.ht/data-grid</a></div></div></div></span></div></span></div></span>
</div>
<br></body></html>