o meu metodo:
@Transactional(readOnly=true)
@Query(" SELECT DISTINCT obj FROM Product obj WHERE obj.name =:q AND obj.price =:max_price >= obj.price =:min_price ")
List<Product>search(@Param("q") String q,@Param("min_price") Double min_price,@Param("max_price") Double max_price);
erro:
2021-06-09 22:36:07.983 ERROR 8904 --- [ restartedMain] o.h.hql.internal.ast.ErrorTracker : right-hand operand of a binary operator was null
antlr.SemanticException: right-hand operand of a binary operator was null