HHH-12670 got reverted as due to HHH-12776 which was caused by Envers entities without a javaType.
This issue aims to re-add the functionality without breaking Envers.