The following mapping fails in using PostgreSQL 10:
The problem is the generated query appends root table alias before reserved word interval:
And it should be mapped as:
After digging in the code, it seems the problem is at org.hibernate.sql.Template class:
dialect.getKeywords() only returns partition and it's deprecated.
I suppose should call IdentifierHelper to check keywords in isFunctionOrKeyword method.