original implementation based on this https://zorq.net/b/2012/04/21/switching-hibernates-uuid-type-mapping-per-database/ however that has ceased to work per https://github.com/spring-projects/spring-boot/issues/2130