Uploaded image for project: 'Cayenne'
  1. Cayenne
  2. CAY-2353

Broken paginated column select with only one entity in the result

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 4.0.B1, 4.1.M1
    • Fix Version/s: 4.0.B2, 4.1.M1
    • Component/s: Core Library
    • Labels:
      None

      Description

      Exception is thrown when trying to select full entity wrapped in Object[] with paginated query.
      Instead of plain ID Object[] is used in page resolution query.

      Example:

      Property<Artist> artistFull = Property.createSelf(Artist.class);
      List<Object[]> a = ObjectSelect.query(Artist.class)
                      .columns(artistFull)
                      .pageSize(10)
                      .select(context);
      

      Note that List<Artist> a = ObjectSelect.query(Artist.class).column(artistFull)... works.

        Attachments

          Activity

            People

            • Assignee:
              ntimofeev Nikita Timofeev
              Reporter:
              ntimofeev Nikita Timofeev
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: