Skip to content

SpEL support for @Query annotation [DATAJDBC-397] #619

@spring-projects-issues

Description

@spring-projects-issues

sopeLi opened DATAJDBC-397 and commented

 

@Modifying
@Query(value = "update orders o set o.status = #{#order.status}")
Integer updateOrder(@Param("order") Order order);

 

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

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions