jpa uses findby query. If the parameter is empty, it is not used as a condition. What can I do?
this function is similar to where < if test="xx! = null" > column = xx < / if >
of mybatis.
for example, I have a findByNameAndAge (String name,Integer age);
. When age is empty,
only queries by name, and age is not a condition.
none of the online searches use the findBy model.
Thank you