| When a field name contains the " from " word in a field name and you enable the pagination the result query is wrong. For example: @Column(name = "[Created From Nonstock Item]", nullable = false) public Short getCreatedFromNonstockItem() { return this.createdFromNonstockItem; } Whill cause the pagination to fail because the expression created here: 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 ); is wrong. Its value is "[Created ". This means that "alias" variable is null and the query will add something like this: [Created as page0_ From Nonstock Item] as Created19_0_, |