Browse Source

Fix documentated syntax for tableName in queries.

Closes #1999
pull/2110/head
Jens Schauder 10 months ago
parent
commit
c40d4585a3
No known key found for this signature in database
GPG Key ID: 74F6C554AE971567
  1. 2
      spring-data-r2dbc/src/test/java/org/springframework/data/r2dbc/documentation/PersonRepository.java

2
spring-data-r2dbc/src/test/java/org/springframework/data/r2dbc/documentation/PersonRepository.java

@ -38,7 +38,7 @@ public interface PersonRepository extends ReactiveCrudRepository<Person, String> @@ -38,7 +38,7 @@ public interface PersonRepository extends ReactiveCrudRepository<Person, String>
// end::spel[]
// tag::spel2[]
@Query("SELECT * FROM #{tableName} WHERE lastname = :lastname")
@Query("SELECT * FROM #{#tableName} WHERE lastname = :lastname")
Flux<Person> findByQueryWithExpression(String lastname);
// end::spel2[]
}

Loading…
Cancel
Save