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/12/05 02:11:49 UTC

[GitHub] [incubator-shardingsphere] EricLye commented on issue #3662: Integrate sharding jdbc with sql server

EricLye commented on issue #3662: Integrate sharding jdbc with sql server
URL: https://github.com/apache/incubator-shardingsphere/issues/3662#issuecomment-561934425
 
 
   But all the parameters are set.
   Here is the Book.
   ```
   @EqualsAndHashCode(callSuper = true)
   @Data
   @TableName("book")
   public class Book extends Model<Book> {
       @TableId(value = "id",type = IdType.INPUT)
       private Integer id;
       @TableField(value = "name")
       private String name;
       @TableField(value = "count")
       private Integer count;
   }
   ```
   and my test code.
   ```
   @Test
   public void saveBatch() {
   	List<Book> bookList = new ArrayList<>();
   	for (int i = 0;i < 10;i ++) {
   		Book book = new Book();
   		book.setId(i);
   		book.setCount(i);
   		book.setName("test" + i);
   		bookList.add(book);
   	}
   	bookService.saveBatch(bookList);
   }
   ```
   Besides,I tried druid + sqlserver,without sharding jdbc,and it works.So I blame this on sharding jdbc.Am I wrong?
   And I accept your suggestion,I will debug the sqlserver driver.
   Maybe this will force me to quit sqlserver ,to use mysql.

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