E.g. "select count (t) from ..." when printed back as HQL becomes "select count() from ..." which is invalid.
A test case is here: [https://github.com/alessiostalla/hibernate-orm/blob/fe8b5dc63a65ddbc2a9e09b19e0cbfb9cc8499c8/hibernate-core/src/test/java/org/hibernate/orm/test/query/ToHqlStringTest.java#L44-L53|https://github.com/alessiostalla/hibernate-orm/blob/fe8b5dc63a65ddbc2a9e09b19e0cbfb9cc8499c8/hibernate-core/src/test/java/org/hibernate/orm/test/query/ToHqlStringTest.java#L44-L53|smart-link]
I can open a PR to add the test case. |
|