-
Notifications
You must be signed in to change notification settings - Fork 360
SpEL support for @Query annotation [DATAJDBC-397] #619
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Mauro Molinari commented It was a surprise to discover that, contrary to for instance Spring Data JPA, Spring Data JDBC does not support SpEL in In particular, this doesn't work, even if Spring Security is configured correctly: @Query("SELECT * FROM Credit WHERE customer = ?#{ principal.id }")
Optional<Credit> findByCurrentCustomer(); Documentation at https://docs.spring.io/spring-security/site/docs/5.3.2.RELEASE/reference/html5/#data
suggesting Spring Data JDBC is not recognizing the SpEL expression as a valid resolver for the parameter |
sopeLi opened DATAJDBC-397 and commented
I want to get the parameters of the order by means of order entity then update.
Reference URL: https://stackoverflow.com/questions/57040030/spring-data-jdbc-use-query-comments-how-to-match-the-parameters-registered-for
Issue Links:
DATAJDBC-468 Supporting SQL Function around inserting value
DATAJDBC-526 Ability to change default sql type mappings
DATAJDBC-605 Parameter concatenation in queries using named parameters
5 votes, 4 watchers
The text was updated successfully, but these errors were encountered: