HHH-7714 - Add support for EntityMode.MAP to JPA Criteria API
(cherry picked from commit 04a9701f8b1c6a70e5edc5af932246083515f679)