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

推荐订阅源

腾讯CDC
Schneier on Security
Schneier on Security
B
Blog RSS Feed
aimingoo的专栏
aimingoo的专栏
P
Proofpoint News Feed
A
About on SuperTechFans
Recorded Future
Recorded Future
Recent Announcements
Recent Announcements
Microsoft Security Blog
Microsoft Security Blog
L
LangChain Blog
Hugging Face - Blog
Hugging Face - Blog
The GitHub Blog
The GitHub Blog
Google DeepMind News
Google DeepMind News
T
Tailwind CSS Blog
Vercel News
Vercel News
H
Hackread – Cybersecurity News, Data Breaches, AI and More
MyScale Blog
MyScale Blog
V2EX - 技术
V2EX - 技术
N
Netflix TechBlog - Medium
F
Fortinet All Blogs
V
Visual Studio Blog
Martin Fowler
Martin Fowler
K
KPMG report finds enterprise disconnect between AI and its ROI | CIO
博客园 - Franky
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
T
The Exploit Database - CXSecurity.com
F
Full Disclosure
Scott Helme
Scott Helme
H
Heimdal Security Blog
博客园 - 叶小钗
Google DeepMind News
Google DeepMind News
Cyberwarzone
Cyberwarzone
Application and Cybersecurity Blog
Application and Cybersecurity Blog
V
Vulnerabilities – Threatpost
Blog — PlanetScale
Blog — PlanetScale
Security Latest
Security Latest
WordPress大学
WordPress大学
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
T
Troy Hunt's Blog
S
SegmentFault 最新的问题
Forbes - Security
Forbes - Security
Jina AI
Jina AI
S
Securelist
小众软件
小众软件
Simon Willison's Weblog
Simon Willison's Weblog
J
Java Code Geeks
AWS News Blog
AWS News Blog
N
News and Events Feed by Topic
博客园 - 三生石上(FineUI控件)
量子位

博客园 - 星星博客园

关于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