我在扩展JpaRepository的界面中有一个native查询.理想情况下,该方法应该返回一个boolean值,但我不知道如何选择任何自动转换为boolean的内容。.这有效,虽然我必须将其称为Boolean.valueOf(hasKids(id))://yuck.Iwantedaboolean@Query(nativeQuery=true,value="select'true'fromdualwhereexists("+"select*fromchild_tablewhereparent_id=?)")StringhasKids(longparentId);如何将其更改为更自然的返