I think this method needs some more inclusions: https://github.com/hibernate/hibernate-orm/commit/12b79a59383d1b647c9957815ef53861f0752dad#r30706050