<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>隔叶黄莺 Unmi Blog &#187; iBatis</title>
	<atom:link href="http://unmi.cc/category/javajee/ibatis/feed" rel="self" type="application/rss+xml" />
	<link>http://unmi.cc</link>
	<description></description>
	<lastBuildDate>Wed, 22 Feb 2012 14:20:05 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>iBatis 使用 OSCache 作缓存与 java.io.FileNotFoundException 异常</title>
		<link>http://unmi.cc/ibatis-oscache-java-io-filenotfoundexception</link>
		<comments>http://unmi.cc/ibatis-oscache-java-io-filenotfoundexception#comments</comments>
		<pubDate>Wed, 19 Aug 2009 05:09:00 +0000</pubDate>
		<dc:creator>Unmi</dc:creator>
				<category><![CDATA[iBatis]]></category>
		<category><![CDATA[Java]]></category>
		<category><![CDATA[OSCache]]></category>

		<guid isPermaLink="false">http://unmi.cc/uncategorized/ibatis-%e4%bd%bf%e7%94%a8-oscache-%e4%bd%9c%e7%bc%93%e5%ad%98%e4%b8%8e-java-io-filenotfoundexception-%e5%bc%82%e5%b8%b8</guid>
		<description><![CDATA[这种异常只会发生在 Windows 平台上，可以说是 iBatis 的一个 Bug，大约 iBatis 的开发测试人员都比较热衷于 Unix 族系的平台，而忽略了 Windows 下的兼容性测试。 出现 FileNotFoundException 异常的情形是这样的：Windows7 + iBatis2.3.0.677 + OSCache2.4.1。 iBatis 中配置使用 OSCache 缓存，在映射文件 Product.xml 中有如下声明片断： &#60;cacheModel type="OSCACHE" id="productCache"&#62; &#60;flushOnExecute statement="Product.insert"/&#62; &#60;flushOnExecute statement="Product.delete"/&#62; &#60;/cacheModel&#62; &#60;select id="getById" cacheModel="productCache" parameterClass="int" resultClass="Product"&#62; select id, name,description as desc1 from test_product where id = #value# &#60;/select&#62; OSCache 的 oscache.properties 中指明用磁盘文件缓存数据，注意以下几个配置： #不缓存到内存 cache.memory=false #缓存持久化实现类，磁盘持久化监听器 [...]]]></description>
		<wfw:commentRss>http://unmi.cc/ibatis-oscache-java-io-filenotfoundexception/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>如何在 iBatis 应用程序向 Oralce 数据表字段插入 NULL 值</title>
		<link>http://unmi.cc/ibatis-insert-null-into-oralce</link>
		<comments>http://unmi.cc/ibatis-insert-null-into-oralce#comments</comments>
		<pubDate>Sun, 29 Apr 2007 15:21:00 +0000</pubDate>
		<dc:creator>Unmi</dc:creator>
				<category><![CDATA[iBatis]]></category>
		<category><![CDATA[database]]></category>
		<category><![CDATA[Oracle]]></category>

		<guid isPermaLink="false">http://unmi.cc/uncategorized/%e5%a6%82%e4%bd%95%e5%9c%a8-ibatis-%e5%ba%94%e7%94%a8%e7%a8%8b%e5%ba%8f%e5%90%91-oralce-%e6%95%b0%e6%8d%ae%e8%a1%a8%e5%ad%97%e6%ae%b5%e6%8f%92%e5%85%a5-null-%e5%80%bc</guid>
		<description><![CDATA[用 iBatis 应用程序连接的数据库是 Oracle, 映射文件中的插入语句写成如下形式  &#60;!-- 插入一条Person对应的记录到数据库中 --&#62; &#60;insert id="insertPerson" parameterClass="com.unmi.Person"&#62; INSERT INTO PERSON(ID,NAME,PASSWD) VALUES(#id#,#name#,#passwd#) &#60;/insert&#62; Person表的三个字段都允许NULL值，当在用如下程序  SqlMapClient sqlMap = SqlMapConfig.getSqlMapInstance(); // as coded above Person person = new Person(1); person.setName("Unmi"); // person.setPasswd("123456"); // 注意该行被注释，让passwd属性为NULL sqlMap.insert("insertPerson", person); 执行后程序报错 Exception in thread "main" com.ibatis.common.jdbc.exception.NestedSQLException:   --- The error occurred in com/unmi/Person.xml.  --- The error occurred while applying [...]]]></description>
		<wfw:commentRss>http://unmi.cc/ibatis-insert-null-into-oralce/feed</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
	</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using disk: basic
Page Caching using disk: enhanced
Database Caching 11/29 queries in 0.009 seconds using disk: basic
Object Caching 1016/1038 objects using disk: basic

Served from: unmi.cc @ 2012-02-23 07:52:02 -->
