You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@shardingsphere.apache.org by GitBox <gi...@apache.org> on 2019/06/05 10:20:03 UTC

[GitHub] [incubator-shardingsphere] tristaZero edited a comment on issue #2489: Where could I find the example for key generator code?

tristaZero edited a comment on issue #2489: Where could I find the example for key generator code?
URL: https://github.com/apache/incubator-shardingsphere/issues/2489#issuecomment-499026242
 
 
   > If I want use distributed primary key generated by sharding jdbc, how the table column like in database schema? Is it necessary set 'primary key ' or Auto increment attributes?
   
   If you want to use use distributed primary key generated by sharding jdbc, setting 'primary key ' or Auto increment  is not necessary.
   
   >How the JPA entity code like ?
   @id or @GeneratorValue is also necessary?
   
   f you want to use use distributed primary key generated by sharding jdbc,  @id or @GeneratorValue is also not necessary.

----------------------------------------------------------------
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:
users@infra.apache.org


With regards,
Apache Git Services