Thanks to Alex Snaps for the fix! Note that for backward compatibility, this is corrected for ORM 5 only. ORM 4.x apps need to continue to use ehcache 2.4-2.6. See the discussion on the pull request.