Added patch for HHH-1237

A patch for bug "Escaping : with :: in queries" (HHH-1237) was provided three years ago, but never applied to the code: https://hibernate.atlassian.net/browse/HHH-1237
Wasn't able to test it because I don't use Gradle (Maven wouldn't have been a problem...)