Look at the CAST() function, I believe that is ANSI standard and should work in all of the products you mentioned. Since each data type you mentioned is used for character data it should implicitly convert to a string in Hibernate.

If not you'll have better luck posting in a forum dedicated to Hibernate, SQLTeam is a Microsoft SQL Server site only.