2

I just wanted to ask, what this generically means:

Invalid derived query! No property delete found for type:

it is occurring for a method in my class that implements the JPARepository class (spring framework). I just wanted to understand what the error meant/was trying to tell me.

user2405469
  • 1,953
  • 2
  • 22
  • 43

1 Answers1

0

As indicated in Spring Data: "delete by" is supported? it is likely that you are using and older version of spring-jpa which does not support delete methods yet. You can either upgrade the dependency or use a query for your method:

@Modifying
@Query("Delete from #{#entityName} t where t.userId= ?1")
public void deleteByUserId(String userId);
Community
  • 1
  • 1
amupoti
  • 52
  • 8