Using a string type as default is kind of problematic as Hibernate would then behave differently i.e. a select item would be of a different type if in a future version the function is registered with the proper type. I'd personally rather register my own function than my app breaking later when updating Hibernate. |