Bug #174
Using Sort in query methods (or transitively in Pageable) only works if x is used as alias
| Status: | Closed | Start: | ||
|---|---|---|---|---|
| Priority: | Normal | Due date: | ||
| Assigned to: | % Done: | 100% |
||
| Category: | Core DAO | Spent time: | - | |
| Target version: | 1.1 | Estimated time: | 3.00 hours |
Description
QueryUtils uses x as fixed alias to apply dynamic sorting to a query. This fails if x is not used in the actual query string. We should either try to detect the alias and use it or at least throw a meaningful exception.
Associated revisions
- fixes #174 - alias is now dynamically detected to apply sorting to
- introduced
detectAlias(String query)method to regex parse the query string
History
Updated by Oliver Gierke 8 months ago
- Subject changed from Using Sort in query methods (or transitively in Pageable} only works if x is used as alias to Using Sort in query methods (or transitively in Pageable) only works if x is used as alias
Updated by Oliver Gierke 8 months ago
- Status changed from New to In progress
Updated by Oliver Gierke 8 months ago
- Start deleted (
12/09/2009)
Updated by Oliver Gierke 8 months ago
- Status changed from In progress to Fixed
- % Done changed from 0 to 100
Applied in changeset r8367.
Updated by Oliver Gierke 7 months ago
- Status changed from Fixed to Closed