shardingsphere: how to use CrudRepository.save of jpa?i dont want my sql route to all data node

hello, my project use jpa + shardingjdbc when i use CrudRepository.save to save my data to database,jpa auto generated sql like update table_a set field_a = 1 , field_ab = 2 where id = 3 but my sharding-key is another field “dealership_id”。So my sql execute route to all data node. I would like to ask, is there any way to deal with this situation?

About this issue

  • Original URL
  • State: open
  • Created 2 years ago
  • Comments: 18 (9 by maintainers)

Most upvoted comments

Hello , this issue has not received a reply for several days. This issue is supposed to be closed.