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

              summer.zhang Summer Zhang
              jorge.diaz Jorge Diaz
              Kiyoshi Lee Kiyoshi Lee
              Jorge Diaz Jorge Diaz
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                3 years, 34 weeks ago

                Packages

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