Skip to content

existsBy projection throws error #93

@micw

Description

@micw

Example: Inmy UserRepository I have a projection that checks if an admin exists:

boolean existsByAdminIsTrue();

This results in exception: org.springframework.aop.AopInvocationException: Null return value from advice does not match primitive return type for: public abstract boolean
If an admin exists, I get a class cast exception.

Querying for a single admin works:
User findOneByAdminIsTrue();

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions