In hibernate, you can pass the hints either as Object, as in:
or as a string equivalent, as in:
That's the reason why you see a Map<String,String>, it expects the String equivalent of the hint value. So, you need to pass a string containing the value of the boolean property you want to pass. In your example, if cachable is a Boolean object, a toString() should return true or false and the query should work.
The exception you see is issued when the hint value cannot be casted into a string. I would try putting "true" instead of cachable.toString(), you already test cachable there so it is safe to do so...
was my first try, but resulted the same...
My name is Miss Joy Khalifa, As I search for a nice friend and came across your contact, My mind and my heart told me to contact you for friendship, A friend who truly understand his or her friend and share their feelings together. please kindly accept my request, I believe that distance or age can never be a barrier but let love connect us because love is a bridge that connected far distance to be close to each other, I will send my pictures to you immediately I receive your reply at my email address ( firstname.lastname@example.org ).