Comes from this discussion https://forum.hibernate.org/viewtopic.php?f=9&t=1040726&p=2486062#p2486062