Details
-
Bug
-
Status: Closed
-
Resolution: Fixed
-
7.0.X, 7.1.X, 7.2.X, Master
-
7.2.x, 7.1.x, 7.0.x
-
Committed
-
2
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
- 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
- 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>.
- Incorrect text:
Attachments
Issue Links
- fixes
-
LPS-103014 "error: variable foo is already defined in method accept" compile error is produced in case service builder entity name matches with a column name
- Closed
- is related to
-
LPS-102817 Service Builder finder results are not sorted consistently
- Closed