Closed
Description
If a query method with custom query uses a parameter of type Class annotated with @param("name"), it is considered a dynamic projection parameter and it is not bound to the query parameter.
For example, for a polymorphic entity E, I would like to be able to express a query such as:
@Query("from E e where type(e) = :type")
<T> List<T> findAll(@Param("type") Class<T> type);