This is not a correct behavior. If you ran all tests against your change proposal, you would find that some tests are failing because we might want to have converters like AttributeConverter<Integer, Integer>, in which case your change will no longer work. In any query, you need to pass the actual type of the property in question. The reason why you get this issue is because you are not using the Converter as it was designed to be used. |