You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
TselAnton, JohnCode1337, kchsvf, comru, PavelV77 and 10 more