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

推荐订阅源

Engineering at Meta
Engineering at Meta
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
人人都是产品经理
人人都是产品经理
Project Zero
Project Zero
T
Tailwind CSS Blog
Jina AI
Jina AI
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
小众软件
小众软件
L
LINUX DO - 热门话题
Spread Privacy
Spread Privacy
大猫的无限游戏
大猫的无限游戏
Google DeepMind News
Google DeepMind News
The Hacker News
The Hacker News
C
Cisco Blogs
T
The Exploit Database - CXSecurity.com
C
CXSECURITY Database RSS Feed - CXSecurity.com
Scott Helme
Scott Helme
Security Archives - TechRepublic
Security Archives - TechRepublic
H
Heimdal Security Blog
博客园 - 【当耐特】
W
WeLiveSecurity
J
Java Code Geeks
Latest news
Latest news
酷 壳 – CoolShell
酷 壳 – CoolShell
T
Troy Hunt's Blog
博客园 - Franky
月光博客
月光博客
cs.CL updates on arXiv.org
cs.CL updates on arXiv.org
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
PCI Perspectives
PCI Perspectives
博客园_首页
C
CERT Recently Published Vulnerability Notes
P
Proofpoint News Feed
P
Palo Alto Networks Blog
I
InfoQ
Security Latest
Security Latest
Hacker News: Ask HN
Hacker News: Ask HN
Microsoft Azure Blog
Microsoft Azure Blog
M
MIT News - Artificial intelligence
Help Net Security
Help Net Security
F
Full Disclosure
Cyberwarzone
Cyberwarzone
D
DataBreaches.Net
The Cloudflare Blog
S
Securelist
美团技术团队
C
Cybersecurity and Infrastructure Security Agency CISA
AI
AI
CTFtime.org: upcoming CTF events
CTFtime.org: upcoming CTF events

博客园 - 星星博客园

关于win10打开Word文件提示“转换文件”,选择文件类型的问题解决方式 关于安装R语言的Rattle报错问题的解决方式 office安装错误,报1603 apple mobile device recovery mode 问题解决 关于informix中判断字母是否为汉字的一点技巧 etc的默认级别 MySQL关于TYPE和ENGIN的一点问题 转两篇关于JVM参数调优 SQL与NoSQL的一些内容汇总 informix 临时空间 Informix 生成随机数 导出Excel(脱离Office环境) 研究Mybatis的Jpetshop-系统搭建(一) 创建一个Jetty的Server 先写一点informix的 文件 "C:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\DATA\mastlog.ldf " 已压缩,但未驻留在只读数据库或文件组中。必须将此文件解压缩。【转】 - 星星博客园 Weblogic常用监控指标(转) BEA WebLogic平台下J2EE调优攻略【转】 关于Session问题
使用Hibernet开发informix数据库程序小结
星星博客园 · 2012-03-15 · via 博客园 - 星星博客园

使用Hibernet开发informix数据库程序小结

1、              数据库transaction模式修改

Informix数据库默认创建的时候是不支持事务的,可以通过修改数据库的日志模式来进行开启。

ontape -s -B hr360db

有其他应用连接着数据库时,会出现”Error changing logging status - 'console'. iserrno 107.

参考:http://blog.csdn.net/lysanderk/article/details/5338435

2、              生成domain.hbm.xml注意的地方

Informix不支持在实体类中类似schemacatalog加在执行语句中。生成的SQL语句会类似于insert into hr360db.xxjsb.user360的模式,需要去掉domain.hbm.xml文件中的

schema="xxjsb" catalog="hr360db"

不然会出现-201语法错误

3、              配置数据库执行脚本显示

将下列脚本添加到hibernet.cfg.xml文件中

<property name="hibernate.show_sql">true</property><!--显示的sql语句格式化-->

<property name="format_sql">true</property><!--使显示的sql语句-->

可以在输出下看到输出语句

参考内容:http://hi.baidu.com/yby0260/blog/item/1088b8126ee30f8c6438db21.html

4、              No CurrentSessionContext configured!" 异常解决方案

在在hibernate.cfg.xml中加入:

<property name="current_session_context_class">thread</property>

参考内容:http://blog.csdn.net/daryl715/article/details/1507385