When a field name contains the " from " word in a field name and you enable the pagination the result query is wrong.
For example: {code} @Column(name = "[Created From Nonstock Item]", nullable = false) public Short getCreatedFromNonstockItem() { return this.createdFromNonstockItem; } {code} Whill cause the pagination to fail because the expression created here: {code} while ( nextComa != -1 ) { prevComa = nextComa; nextComa = shallowIndexOfPattern( sb, COMMA_PATTERN, nextComa ); if ( nextComa > endPos ) { break; } if ( nextComa != -1 ) { final String expression = sb.substring( prevComa, nextComa ); {code} is wrong. Its value is "[Created ". This means that "alias" variable is null and the query will add something like this: {code} [Created as page0_ >From Nonstock Item] as Created19_0_, {code} |
|