Closed
Description
Currently, there is no way to reference the name of the table in the SPEL expression in @Query
. The behavior I guess should be similar to one we have now in JPA. So something like this:
@Query("SELECT * FROM #{#tableName} WHERE status = #{#status.name()}")
List<MyEntity> findByStatus(Status status);
I think would be the way to go.