it does exist a way to register custom SQL functions at runtime in HIbernate 5.3? It seems that since this changeset was introduced, is not possible.
Correct me if I’m wrong, but the current options to register a custom SQL function in Hibernate are the following ones:
- Create a custom dialect and register the functions on the constructor.
- Get the Configuration object when the app starts and register the SQL functions.
- Use a MetadataBuilderInitializer
But as far as I know none of this options allows to add SQL functions after Hibernate has been set up.
What do you think? What is the recommended approach in this case?
Thank you in advance.