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

Broken paginated column select with only one entity in the result

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 4.0.B1, 4.1.M1
    • 4.0.B2, 4.1.M1
    • Core Library
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: