GridGain Community Edition

Expand all | Collapse all

Returning Page from query not working

  • 1.  Returning Page from query not working

    Posted 10-09-2020 07:25 AM
    Hello everyone!

    I'm trying to implement pagination on top of ignite but no success yet. Below are some SS from the repository and service layer:

    Repository:

    Service:



    As you can see I got null as result from the query. I already tested returning a List<ProductEntity> instead Page<ProductEntity> and it works.

    Repository:

    Service:


    So why returning Page is not working? Any advice?

    P.S. @Ilya Kasnacheev
    First of all how are you? Thank you so much for your help on the last post ;) Do you know anyone who had the same issue?


    Best regards,

    ------------------------------
    João Sousa
    EAI Developer
    Celfocus
    ------------------------------


  • 2.  RE: Returning Page from query not working

    Posted 10-12-2020 02:19 AM
    Hello!

    I can see a few examples, but they will return List instead of Page:

    /** */
    @Query("SELECT _key, secondName FROM Person WHERE firstName REGEXP ?")
    public List<List> selectSeveralField(String val, Pageable pageable);

    Regards,

    ------------------------------
    Ilya Kasnacheev
    Community Support Specialist
    GridGain
    ------------------------------



  • 3.  RE: Returning Page from query not working

    Posted 10-12-2020 02:35 AM
    Hello Ilya!

    It works with List as shown above but not with Page. Any clue?

    Regards,

    ------------------------------
    João Sousa
    EAI Developer
    Celfocus
    ------------------------------



  • 4.  RE: Returning Page from query not working

    Posted 10-16-2020 05:42 AM
    Hello!

    I think that returning Page is not supported by our implementation, so you should use List. You can still pass Pageable as method argument.

    Regards,

    ------------------------------
    Ilya Kasnacheev
    Community Support Specialist
    GridGain
    ------------------------------



  • 5.  RE: Returning Page from query not working

    Posted 10-19-2020 02:29 AM

    Hello!

    Sorry for the late reply. Thank you for your time Ilya, do you know if it will be available in the future?

    Regards,



    ------------------------------
    João Sousa
    EAI Developer
    Celfocus
    ------------------------------



  • 6.  RE: Returning Page from query not working

    Posted 10-19-2020 02:56 AM
    Hello!

    We do not have this feature in our roadmap, so I can't promise anything definitive, but it may still come from the Apache Ignite code base if it is implemented there.

    Regards,

    ------------------------------
    Ilya Kasnacheev
    Community Support Specialist
    GridGain
    ------------------------------