Hello all,
once upon a time, Hibernate was able to detect database specific functions (like SYSTIMESTAMP) in @Function annotations. Today, for example with 7.4, this ability was removed. Those functions, if not suffixed by (), aren’t any longer detected as functions and therefore prefixed with the table alias (rendering in b1_0.systimestamp, which is rejected by the database).
The reason for this I discovered lies in commit a20fb5663d titled “major rework of Template + battery of new tests” which removed the “isFunction” method from org.hibernate.sql.Template class which had been responsible to lookup the database specific function descriptors.
May I suppose this is a bug (in this case, I would create an Issue), or could it in any way be intended behaviour?
Marcus.