I knew it rang a bell yesterday evening when I first read this post. We already have: https://hibernate.atlassian.net/browse/HV-823 which was open a very long time ago with exactly the same requirement as yours in mind.
There are some preliminary discussions in the issue.
It’s definitely something I would like to have in 6.1 if you’re willing to work on it. I’ll obviously provide guidance to drive it home.
Let’s move the discussion to the JIRA issue, I’ll add a few things I have in mind there.