Got a little problem with custom query in my repository:
@Query("select v from Visit v where YEARWEEK('date') = YEARWEEK(curdate())")
Error shows before YEARWEEK('date') opening bracket:
<expression>, <operator>, AND, GROUP, HAVING, IS, OR or ORDER expected, got '('
SELECT v FROM Visit vlooks ambiguous or a typo. PerhapsSELECT v.* FROM Visit v? And the quotes around'date'would usually represent strings, do you mean backticks `?