Conversation
xlorne
commented
Aug 17, 2026
Contributor
- FlowRecord/FlowTodoRecord/FlowTodoMarge/SubProcessRecord 显式 @SequenceGenerator, 序列名固定为 t_<表名>_seq,不再依赖 Hibernate 隐式命名(避免因 db_structure_naming_strategy 或方言差异导致序列名推导不一致、Hibernate 找不到序列)
- allocationSize 固定 50,与序列 INCREMENT BY 严格一致,规避 pooled 优化器主键重复
- application-dm.properties 补充达梦序列部署约定:ddl-auto=update 在达梦自动建序列不可靠, 需手工预建;起始值按表是否有历史数据设置(空表 start with 1,有数据 start with max(id)+1)
- FlowRecord/FlowTodoRecord/FlowTodoMarge/SubProcessRecord 显式 @SequenceGenerator, 序列名固定为 t_<表名>_seq,不再依赖 Hibernate 隐式命名(避免因 db_structure_naming_strategy 或方言差异导致序列名推导不一致、Hibernate 找不到序列) - allocationSize 固定 50,与序列 INCREMENT BY 严格一致,规避 pooled 优化器主键重复 - application-dm.properties 补充达梦序列部署约定:ddl-auto=update 在达梦自动建序列不可靠, 需手工预建;起始值按表是否有历史数据设置(空表 start with 1,有数据 start with max(id)+1) Co-Authored-By: Claude <noreply@anthropic.com>
- 提供 t_flow_record/t_flow_todo_record/t_flow_todo_marge/t_flow_sub_process_record 四张 SEQUENCE 主键表的建序脚本 - 幂等可反复执行;START WITH 自动取 表 max(id)+1,表空为 1,规避撞历史主键 - INCREMENT BY 固定 50,与实体 allocationSize=50 严格一致,避免 pooled 优化器主键重复 Co-Authored-By: Claude <noreply@anthropic.com>
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #214 +/- ##
=========================================
Coverage 73.03% 73.03%
Complexity 1589 1589
=========================================
Files 226 226
Lines 6715 6715
Branches 728 728
=========================================
Hits 4904 4904
Misses 1457 1457
Partials 354 354 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.