291277058 commented on issue #2809:
URL: https://github.com/apache/shardingsphere/issues/2809#issuecomment-656580407


   Is that mean key-generator will not generator key for column id. @terrymanu 
When i use the jpa+key-generator ,i found the id is correct in DTO,but error 
hanpened when inster into db.
   Here is the sql
   `
   insert into order_item20201  
   (app_id, create_date, orderno, original_price, pay_date, pay_source, price, 
product_list, source_orderno, status, user_id, id) 
   VALUES 
   (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) ::: 
   [null, 2020-07-10 15:38:05.945, uoI0H, 0.0, null, 488372535331651584, 0.0, 
null, null, 0, null, null]
   `
   488372535331651584 is key generator by SNOWFLAKE algorithm.


----------------------------------------------------------------
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]


Reply via email to