惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

人人都是产品经理
人人都是产品经理
Blog — PlanetScale
Blog — PlanetScale
MyScale Blog
MyScale Blog
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
WordPress大学
WordPress大学
Vercel News
Vercel News
D
Docker
博客园 - 聂微东
T
Tailwind CSS Blog
aimingoo的专栏
aimingoo的专栏
云风的 BLOG
云风的 BLOG
D
DataBreaches.Net
B
Blog RSS Feed
酷 壳 – CoolShell
酷 壳 – CoolShell
博客园 - Franky
Microsoft Security Blog
Microsoft Security Blog
美团技术团队
F
Fortinet All Blogs
MongoDB | Blog
MongoDB | Blog
T
The Blog of Author Tim Ferriss
GbyAI
GbyAI
N
Netflix TechBlog - Medium
G
Google Developers Blog
腾讯CDC

博客园 - 金江

SaeweedFS操作 15019:Only the instance admin may alter the PermSize attribute sqlplus连接oracle语法 Timesten 日常管理命令合集 TT8509: PL/SQL execution terminated; PLSQL_TIMEOUT exceeded Permanent data region free space insufficient to allocate 64792 bytes of memory TimesTen启动停止命令 TimesTen客户端DSN配置 Unable to connect to data source (DSN: shangjihuiclient; Network Address: ; Port Number: 53397). Cannot connect to TimesTen Server. Verify that the TimesTen Server is running or verify that your TCP PORT is set correctly. [TimesTen]TT7001: User authentication failed Kibana修改Time日志格式 数百条线程为何频繁断开,回调函数为何迟迟没有结果 [原创]Dubbo配置(Spring4+Hiberante4+Druid) [原创]II7/IIS8屏蔽YisouSpider蜘蛛 360安全卫士qurl.f.360.cn分析 GPFS文件系统笔记 [原创]解决DataSet的GetXml()方法空列不返回问题 Redis新的存储模式diskstore 在多台服务器上简单实现Redis的数据主从复制
[原创]hibernate更新后jdbc读取不到数据问题
金江 · 2015-03-04 · via 博客园 - 金江

最近在做工作流插件时使用的是自己基于hibernate连接封装的orm框架,按说跟hibernate共用的一个连接,应该在同一个事务中,但在使用时hibernate saveOrUpdate后(未提交事务),ORM并没有读取到更新,导致工作流分支异常,在我同事的努力下,终于找到答案,看一下他的注释,以备后用。

/**
                     * 增加招标中心业务员审批,工作流 读取不到更新后的组织单位。增加flush()
                     * flush()方法进行清理缓存的操作,执行一系列的SQL语句,但不会提交事务;
                     * commit()方法会先调用flush()方法,然后提交事务. 提交事务意味着对数据库所做的更新会永久保持下来   
                     */
                    DataSourceFactory.DEFAULT_DATA_SOURCE.getSessionFactory().getCurrentSession().flush();