strongduanmu commented on issue #7703: URL: https://github.com/apache/shardingsphere/issues/7703#issuecomment-739258571
> So a safer option would be to define an Annotation, something like "@ForceWhereClause" which should then indicate to sharding-sphere that it has to use the value from SET clause and either use that to figure out which is the target shard, or put in a where clause along in the final statement and let things happen naturally. @sabz90 I think adding annotations is a good idea, but I think it is more appropriate for hibernate to provide this annotation. Users can freely control which fields are added to the `WHERE` clause and which fields are added to the `SET` clause through hibernate annotations. ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected]
