I’m working to remove some deprecation warnings related with typed query parameters , i.e., regarding to the usage of methods like setDate, setBigDecimal of org.hibernate.query.Query class.
According to the documentation, to replace that kind of methods I can choose either setParameter(String, Object) or setParameter(String, Object, Type).
Which method would you recommend to use? Is there any performance implications of using the method where the type is not specified? Is there any scenario where one method should be preferred to the other one?