Skip to content

@Query definitions with SpEL expressions #164

Closed
@a8t3r

Description

@a8t3r

Something like that https://spring.io/blog/2014/07/15/spel-support-in-spring-data-jpa-query-definitions:

@Query("select u from User u where u.firstname = :#{#customer.firstname}")
List<User> findUsersByCustomersFirstname(@Param("customer") Customer customer);

I thought this feature is common to all spring data projects, but it seems to be specific to jpa.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions