Please make sure you include a test case. If the bug still exists, you should be able to update org.hibernate.jpa.test.graphs.queryhint.QueryHintEntityGraphTest to reproduce it: