All details here: https://stackoverflow.com/questions/48990263/hibernate-attributeconverter-fails-if-using-custom-query-with-join
For any details contact me at bohdan.petrenko@gmail.com