Skip to content

Commit 9da75f9

Browse files
committed
✨ 集成 Jdbc Template,并简易封装通用 Dao 层
1 parent 9acf62b commit 9da75f9

File tree

1 file changed

+1
-1
lines changed
  • spring-boot-demo-orm-jdbctemplate/src/main/java/com/xkcoding/orm/jdbctemplate/dao/base

1 file changed

+1
-1
lines changed

spring-boot-demo-orm-jdbctemplate/src/main/java/com/xkcoding/orm/jdbctemplate/dao/base/BaseDao.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ public BaseDao(JdbcTemplate jdbcTemplate) {
4646
* @param ignoreNull 是否忽略 null 值
4747
* @return 操作的行数
4848
*/
49-
public Integer insert(T t, Boolean ignoreNull) {
49+
protected Integer insert(T t, Boolean ignoreNull) {
5050
Table tableAnnotation = t.getClass().getAnnotation(Table.class);
5151
String table;
5252
if (ObjectUtil.isNotNull(tableAnnotation)) {

0 commit comments

Comments
 (0)