Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-103068

Text of range_comment.ftl file is not correct, "ORDER BY" clause is always added to SQL query

    Details

      Description

      Text of range_comment.ftl file is not correct, "ORDER BY" clause is always added to SQL query, see LPS-102817

      Steps to reproduce

      1. Go to any ...Persistance.java class and check any finder, for example: AccountPersistence.findAll https://github.com/liferay/liferay-portal/blob/master/portal-kernel/src/com/liferay/portal/kernel/service/persistence/AccountPersistence.java#L117
      2. Check javadoc text:
        • Incorrect text:
          [...]
          If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not <code>QueryUtil#ALL_POS</code>), then the query will include the default ORDER BY logic from <code>AccountModelImpl</code>. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
        • Correct text:
          [...]
          If <code>orderByComparator</code> is absent, then the query will include the default ORDER BY logic from <code>AccountModelImpl</code>.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                summer.zhang Summer Zhang
                Reporter:
                jorge.diaz Jorge Diaz
                Participants of an Issue:
                Recent user:
                Clarissa Velazquez
                Engineering Assignee:
                Jorge Diaz
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Days since last comment:
                  8 weeks, 3 days ago

                  Packages

                  Version Package
                  7.0.0 DXP FP88
                  7.0.X
                  7.1.10 DXP FP15
                  7.1.X
                  7.2.10 DXP FP3
                  7.2.X
                  7.2.1 CE GA2
                  Master