Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-19304

JPA paging support

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • 3.21.0, 4.0-RC1, 4.0.0
    • camel-jpa
    • None
    • Unknown

    Description

      Camel JPA endpoint supports option maximumResults, but this is not enough to implement paging. Also, there is no way to specify offset apart from nativeQuery.

      maximumResults is static on the endpoint; it may be specified dynamically only using toD, but this means creating dynamic endpoints.

      This PR addresses the above:

      • adds support for firstResult
      • both maximumResults and firstResult may be specified in message headers, these override values specified on the endpoint, if any

      Attachments

        Activity

          People

            Unassigned Unassigned
            jsz Jacek SzymaƄski
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: