Hi,

Check this section of the Ignite + Spring Data tutorial:
https://www.gridgain.com/docs/tutorials/spring/spring_ignite_tutorial#create-spring-data-repositories

-
Denis


On Wed, Aug 12, 2020 at 6:52 PM 1478814670 <1478814...@qq.com> wrote:

> Hi,
>     Use Ignite Spring Data module to query some selected fields from a
> table or join query from tables, the return value is just the first field
> of the record。
>     Sample code:
>      ----------------
>      public interface ObjectARepository extends IgniteRepository<ObjectA,
> String> {
>           @Query(select a0, a1 from TableA where a2='xx')
>           public List<ObjectA> findObjectA(String a2);
>
>           @Query(select a.a0, a.a1, b.b1, b.b2  from TableA as a ,TableB
> as b where a2=b2)
>           public List<ObjectA> findData();
>      }
>     -----------------
>    How to get the expected fields using the Spring Data module?
>
>    Thanks!
>

Reply via email to