Note that this will be reverted by HHH-9010. A regression was found – see the discussion on https://github.com/hibernate/hibernate-orm/pull/689