This feature is already supported and was implemented by HHH-12146.
Just upgrade to Hibernate 5.3 and benefit from it.