Skip to content

Delete by query doesn't seems to work as expected #159

@cambierr

Description

@cambierr

Here is a sample repository:

@Repository
public interface UserRoleRepository extends ReactiveCrudRepository<UserRole, UUID> {
    @Query("delete from account.User_Role where user_id = $1")
    Mono<Void> deleteAllByUserId(UUID userId);
}

This produces the error org.springframework.data.mapping.MappingException: Couldn't find PersistentEntity for type class java.lang.Void! and I'm not sure to know how to make this work and wasn't able to find anything relevant in the documentation & issues.

Any help on this ? Thank you guys !

Metadata

Metadata

Assignees

No one assigned

    Labels

    for: external-projectFor an external project and not something we can fixtype: bugA general bug

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions