User Defined Functions in Dialect

I just recently answered a similar question: Migration of dialect to Hibernate 6