white knight

导航

 

2018年8月6日

摘要: CriteriaBuilder.In in = criteriaBuilder.in(root.get("field1")); for (String str : arr) { in.value(str);} 阅读全文
posted @ 2018-08-06 15:44 white knight 阅读(113) 评论(0) 推荐(0) 编辑
 
摘要: jdbcTemplate 的第三个参数一定要是int[]数组,而不能是Object[]数组 阅读全文
posted @ 2018-08-06 11:35 white knight 阅读(469) 评论(0) 推荐(0) 编辑
 
摘要: public void batchImport(List> list) { String sql = "insert into table1(field1, field2) values(?,?)"; int[] types = new int[2]; types[0] = Types.VARCHAR; types[1] = Types.NUMER... 阅读全文
posted @ 2018-08-06 11:34 white knight 阅读(538) 评论(0) 推荐(0) 编辑