dbVisitor 5.3.0 发布,造数据 Bug 修复,MyBatisPlus 兼容及新增表信息描述

1,479次阅读
没有评论

介绍

dbVisitor 是一个全功能数据库访问 ORM 工具,提供对象映射、丰富的类型处理、动态 SQL、存储过程、 内置分页方言 20+、 支持嵌套事务、多数据源、条件构造器、INSERT 策略、多语句 / 多结果。并兼容 Spring 及 MyBatis 用法。 它不依赖任何其它框架,因此可以很方便的和任意一个框架整合在一起使用。

依赖

<dependency>
<groupId>net.hasor</groupId>
<artifactId>dbvisitor</artifactId>
<version>5.3.0</version>
</dependency>

新增

  • 新增 Page 接口增加方法,可以设置总记录数、是否返回总记录数等
  • 新增 表信息描述,为了自动建表提供支持。@TableDescription、@ColumnDescription 注解,对应的 dtd/xsd 也增加相应的属性
  • 新增 FakerMonitor 统计信息,ignoreCounter 用于统计忽略项
  • 新增 resultType 对 Map 子类对象的支持
  • 新增 JsonTypeHandler 用于处理 json 化的 TypeHandler
  • 新增 PostgreSqlDialect 方言支持 InsertSqlDialect 接口

优化

  • 优化 Page 查询,如果 totalCount 大于 0 会跳过 totalCount 查询,除非明显的调用了 refreshTotalCount
  • 优化 MySqlDialect 方言实现,tableName 的生成 catalog/schema 参数都可以用于定义数据库名,其中 catalog 优先级更高
  • 优化 JdbcTemplate 打印异常日志的地方支持 printStmtError 属性
  • 优化 Lambda 下日志打印使用 PreparedStatementCreatorWrap 类型包裹匿名类,并提供 SqlProvider 的实现。可以在打印日志的时候打印出 SQL
  • 优化 BaseMapper 接口方法命名方式借鉴 MyBatisPlus,更加方便从 MyBatisPlus 方便升级到 dbVisitor
  • 优化 创建 TypeHandler 过程,现在支持携带一个带有 Type 参数的构造方法
  • 优化 InsertSqlDialect 接口方法名缩减

修复

  • 修复 TableDef 类空指针异常问题,
  • 修复 Faker 在生成 SQL SERVER DATETIMEOFFSET 类型时候处理 dateType 类型指定成了 String 的问题
  • 修复 MySqlDialect upsert 写法错误
  • 修复 oracle-widely.tpc safeMaxLength 函数中 最大值和默认值 写反了
  • 修复 InsertExecute executeSumResult方法在计算批量返回值时 -2 也是正常的一种

 

项目首页:https://www.dbvisitor.net
项目地址:https://gitee.com/zycgit/dbvisitor
Issue:https://gitee.com/zycgit/dbvisitor/issues

Read More 

正文完
可以使用微信扫码关注公众号(ID:xzluomor)
post-qrcode
 0
评论(没有评论)

文心AIGC

2023 年 3 月
 12345
6789101112
13141516171819
20212223242526
2728293031  
文心AIGC
文心AIGC
人工智能ChatGPT,AIGC指利用人工智能技术来生成内容,其中包括文字、语音、代码、图像、视频、机器人动作等等。被认为是继PGC、UGC之后的新型内容创作方式。AIGC作为元宇宙的新方向,近几年迭代速度呈现指数级爆发,谷歌、Meta、百度等平台型巨头持续布局
文章搜索
热门文章
潞晨尤洋:日常办公没必要上私有模型,这三类企业才需要 | MEET2026

潞晨尤洋:日常办公没必要上私有模型,这三类企业才需要 | MEET2026

潞晨尤洋:日常办公没必要上私有模型,这三类企业才需要 | MEET2026 Jay 2025-12-22 09...
面向「空天具身智能」,北航团队提出星座规划新基准丨NeurIPS’25

面向「空天具身智能」,北航团队提出星座规划新基准丨NeurIPS’25

面向「空天具身智能」,北航团队提出星座规划新基准丨NeurIPS’25 鹭羽 2025-12-13 22:37...
钉钉又发新版本!把 AI 搬进每一次对话和会议

钉钉又发新版本!把 AI 搬进每一次对话和会议

钉钉又发新版本!把 AI 搬进每一次对话和会议 梦晨 2025-12-11 15:33:51 来源:量子位 A...
商汤Seko2.0重磅发布,合作短剧登顶抖音AI短剧榜No.1

商汤Seko2.0重磅发布,合作短剧登顶抖音AI短剧榜No.1

商汤Seko2.0重磅发布,合作短剧登顶抖音AI短剧榜No.1 十三 2025-12-15 14:13:14 ...
MEET2026挤爆了,AI圈今年最该听的20+场演讲&对谈都在这

MEET2026挤爆了,AI圈今年最该听的20+场演讲&对谈都在这

MEET2026挤爆了,AI圈今年最该听的20+场演讲&对谈都在这 西风 2025-12-11 15:...
最新评论
ufabet ufabet มีเกมให้เลือกเล่นมากมาย: เกมเดิมพันหลากหลาย ครบทุกค่ายดัง
tornado crypto mixer tornado crypto mixer Discover the power of privacy with TornadoCash! Learn how this decentralized mixer ensures your transactions remain confidential.
ดูบอลสด ดูบอลสด Very well presented. Every quote was awesome and thanks for sharing the content. Keep sharing and keep motivating others.
ดูบอลสด ดูบอลสด Pretty! This has been a really wonderful post. Many thanks for providing these details.
ดูบอลสด ดูบอลสด Pretty! This has been a really wonderful post. Many thanks for providing these details.
ดูบอลสด ดูบอลสด Hi there to all, for the reason that I am genuinely keen of reading this website’s post to be updated on a regular basis. It carries pleasant stuff.
Obrazy Sztuka Nowoczesna Obrazy Sztuka Nowoczesna Thank you for this wonderful contribution to the topic. Your ability to explain complex ideas simply is admirable.
ufabet ufabet Hi there to all, for the reason that I am genuinely keen of reading this website’s post to be updated on a regular basis. It carries pleasant stuff.
ufabet ufabet You’re so awesome! I don’t believe I have read a single thing like that before. So great to find someone with some original thoughts on this topic. Really.. thank you for starting this up. This website is something that is needed on the internet, someone with a little originality!
ufabet ufabet Very well presented. Every quote was awesome and thanks for sharing the content. Keep sharing and keep motivating others.
热评文章
预见未来:96位前沿先锋超万字核心观点总结,抢抓未来产业新高地

预见未来:96位前沿先锋超万字核心观点总结,抢抓未来产业新高地

预见未来:96位前沿先锋超万字核心观点总结,抢抓未来产业新高地 henry 2025-12-11 10:27:...
Meta公开抄阿里Qwen作业,还闭源了…

Meta公开抄阿里Qwen作业,还闭源了…

Meta公开抄阿里Qwen作业,还闭源了… Jay 2025-12-11 11:48:25 来源:量子位 Ja...
MEET2026挤爆了,AI圈今年最该听的20+场演讲&对谈都在这

MEET2026挤爆了,AI圈今年最该听的20+场演讲&对谈都在这

MEET2026挤爆了,AI圈今年最该听的20+场演讲&对谈都在这 西风 2025-12-11 15:...
钉钉又发新版本!把 AI 搬进每一次对话和会议

钉钉又发新版本!把 AI 搬进每一次对话和会议

钉钉又发新版本!把 AI 搬进每一次对话和会议 梦晨 2025-12-11 15:33:51 来源:量子位 A...