As mentioned by Steve in [this StackOverflow answer](https://stackoverflow.com/a/49215106/1025118), when using HBM, we can make use of JPA AttribueConverters by using the converted:: prefix inside the type mapping definition.