Well, it's not supposed to be JPQL compliant in the first place - this JIRA is specifically about a native SQL problem. In any case, the workarounds are just provided for those who are reading these who might have encountered the same problem and are looking for a way around it. It's not a suggested fix.
Putting extra brackets I daresay feels a bit less hacky to most people than adding a dummy comment like /* */
|