<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/"><channel><title>看!corey,那天比你高多拉~~~ - </title><link>category/365503.aspx</link><description /><dc:language>zh-CN</dc:language><lastUpdateTime>Fri, 30 May 2008 15:21:37 GMT</lastUpdateTime><ttl>60</ttl><item><dc:creator>corey</dc:creator><title>现代 ORM 工具的策略和最佳实践</title><link>http://blog.csdn.net/turkeyzhou/archive/2008/05/30/2496567.aspx</link><pubDate>Fri, 30 May 2008 15:22:00 GMT</pubDate><guid>http://blog.csdn.net/turkeyzhou/archive/2008/05/30/2496567.aspx</guid><wfw:comment>comments/2496567.aspx</wfw:comment><comments>http://blog.csdn.net/turkeyzhou/archive/2008/05/30/2496567.aspx#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>comments/commentRss/2496567.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=2496567</trackback:ping><description>转自ibm，有关现代 ORM 工具的策略和最佳实践&lt;img src ="aggbug/2496567.aspx" width = "1" height = "1" /&gt;</description></item><item><dc:creator>corey</dc:creator><title>利用开源项目Hibernate开发Blog系统</title><link>http://blog.csdn.net/turkeyzhou/archive/2008/03/01/2137322.aspx</link><pubDate>Sat, 01 Mar 2008 14:24:00 GMT</pubDate><guid>http://blog.csdn.net/turkeyzhou/archive/2008/03/01/2137322.aspx</guid><wfw:comment>comments/2137322.aspx</wfw:comment><comments>http://blog.csdn.net/turkeyzhou/archive/2008/03/01/2137322.aspx#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>comments/commentRss/2137322.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=2137322</trackback:ping><description>	导读： 　　开发工具采用MYECLIPS3.6,首先是建立项目，导入Struts+Hibernate包，然后配置SRC跟目录下的hibernate.cfg.XML.我采用的是MySQL数据库，所以配置如下： 　　＜hibernate-configuration＞ 　　＜session-factory＞ 　　＜!-- properties --＞ 　　＜property name="connection.username"＞root＜/property＞ 　　＜property name="connection.url"＞JDBC:mysql://localhost:3306/tonnyblog＜/property＞ 　　＜property name="dialect"＞net.sf.hibernate.dialect.MySQLDialect＜/property＞ 　　＜property name="connection.password"＞＜/property＞ 　　＜property name="connection.driver_class"＞org.gjt.mm.mys&lt;img src ="aggbug/2137322.aspx" width = "1" height = "1" /&gt;</description></item><item><dc:creator>corey</dc:creator><title>在Spring中集成Hibernate事务</title><link>http://blog.csdn.net/turkeyzhou/archive/2008/03/01/2137323.aspx</link><pubDate>Sat, 01 Mar 2008 14:24:00 GMT</pubDate><guid>http://blog.csdn.net/turkeyzhou/archive/2008/03/01/2137323.aspx</guid><wfw:comment>comments/2137323.aspx</wfw:comment><comments>http://blog.csdn.net/turkeyzhou/archive/2008/03/01/2137323.aspx#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>comments/commentRss/2137323.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=2137323</trackback:ping><description>	导读： 　　本文试图解释如何使用Spring来集成组件（包括组件的事务关系）。在J2EE应用程序中，连接到单个存储数据没有什么困难。但是一旦要求集成企业级组件的时候，情况就复杂了。一个组件一般会受到一个或多个存储数据的支持，因此当我们提到集成一个或多个组件的时候，我们就认为需要跨越多个组件、维护多个数据存储中的原子操作。J2EE服务器为这些组件提供了一个容器，这个容器可以管理这些事务性原子操作和跨组件的隔离。如果我们没有使用J2EE服务器，Spring可以帮助我们。Spring在集成组件服务和它们相关的事务关系的时候，是基于控制倒置（Inversion of Control）的。 　　集成（Assembling）组件事务 　　假设在我们的企业组件库中，已经拥有了一个审计（audit）组件，客户端可以调用它的服务方法。后来，当我们希望建立一个订单处理系统的时候，我们 发现了一个设计需求：OrderListManager组件服务也需要审计组件服务。OrderListManager建立和管理订单，因此所有的 OrderListManager服务都有自己的事务属性。当我们在OrderL&lt;img src ="aggbug/2137323.aspx" width = "1" height = "1" /&gt;</description></item><item><dc:creator>corey</dc:creator><title>Hibernate+Spring+Struts2+ExtJS开发CRUD功能（转）</title><link>http://blog.csdn.net/turkeyzhou/archive/2008/02/19/2107330.aspx</link><pubDate>Tue, 19 Feb 2008 17:56:00 GMT</pubDate><guid>http://blog.csdn.net/turkeyzhou/archive/2008/02/19/2107330.aspx</guid><wfw:comment>comments/2107330.aspx</wfw:comment><comments>http://blog.csdn.net/turkeyzhou/archive/2008/02/19/2107330.aspx#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>comments/commentRss/2107330.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=2107330</trackback:ping><description>Hibernate+Spring+Struts2+ExtJS开发CRUD功能
&lt;img src ="aggbug/2107330.aspx" width = "1" height = "1" /&gt;</description></item><item><dc:creator>corey</dc:creator><title>深入探讨 Spring 与 Struts 的集成方案(4)</title><link>http://blog.csdn.net/turkeyzhou/archive/2007/12/14/1936943.aspx</link><pubDate>Fri, 14 Dec 2007 18:00:00 GMT</pubDate><guid>http://blog.csdn.net/turkeyzhou/archive/2007/12/14/1936943.aspx</guid><wfw:comment>comments/1936943.aspx</wfw:comment><comments>http://blog.csdn.net/turkeyzhou/archive/2007/12/14/1936943.aspx#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>comments/commentRss/1936943.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=1936943</trackback:ping><description>深入探讨 Spring 与 Struts 的集成方案&lt;img src ="aggbug/1936943.aspx" width = "1" height = "1" /&gt;</description></item><item><dc:creator>corey</dc:creator><title>深入探讨 Spring 与 Struts 的集成方案(3)</title><link>http://blog.csdn.net/turkeyzhou/archive/2007/12/14/1936936.aspx</link><pubDate>Fri, 14 Dec 2007 17:59:00 GMT</pubDate><guid>http://blog.csdn.net/turkeyzhou/archive/2007/12/14/1936936.aspx</guid><wfw:comment>comments/1936936.aspx</wfw:comment><comments>http://blog.csdn.net/turkeyzhou/archive/2007/12/14/1936936.aspx#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>comments/commentRss/1936936.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=1936936</trackback:ping><description>4.实现第二种集成方案:代理和委托Action.　　这种集成方案要求我们编写一个Struts Action,但它只不过是一个包含在Spring应用上下文中的真正Struts Action的一个代理.该代理Action从Struts插件ContextLoaderPlugIn中获取应用上下文,从中查找真正的Struts Action,然后将处理委托给真正的Struts Action.这个方法的幽雅之处在于:只有代理action才会包含Spring特定的处理.真正的Action可以作为org.apache.struts.Action的子类来编写.　　下面我们来看一段在之中集成方式下的Struts Action源代码:　 　public class CourceAction extends Action { 　　private CourceService courceService; 　　public ActionForward execute( 　　ActionMapping mapping, 　　ActionForm form, 　　HttpServle&lt;img src ="aggbug/1936936.aspx" width = "1" height = "1" /&gt;</description></item><item><dc:creator>corey</dc:creator><title>深入探讨 Spring 与 Struts 的集成方案(1)</title><link>http://blog.csdn.net/turkeyzhou/archive/2007/12/14/1936922.aspx</link><pubDate>Fri, 14 Dec 2007 17:58:00 GMT</pubDate><guid>http://blog.csdn.net/turkeyzhou/archive/2007/12/14/1936922.aspx</guid><wfw:comment>comments/1936922.aspx</wfw:comment><comments>http://blog.csdn.net/turkeyzhou/archive/2007/12/14/1936922.aspx#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>comments/commentRss/1936922.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=1936922</trackback:ping><description>Spring是一个轻量级(大小和系统开支的角度)的IoC和AOP容器.它力图简化J2EE开发即J2EE without EJB.而且作为帮助企业级开发的核心支柱,Spring为模型层(OR持久层:Hibernate、JDO、iBatis等)服务层(EJB、JNDI、WebService)以及表现层(Struts、JSF、Velocity)都提供了良好的支持和集成方案.　访问Spring官方站&lt;img src ="aggbug/1936922.aspx" width = "1" height = "1" /&gt;</description></item><item><dc:creator>corey</dc:creator><title>深入探讨 Spring 与 Struts 的集成方案(2)</title><link>http://blog.csdn.net/turkeyzhou/archive/2007/12/14/1936929.aspx</link><pubDate>Fri, 14 Dec 2007 17:58:00 GMT</pubDate><guid>http://blog.csdn.net/turkeyzhou/archive/2007/12/14/1936929.aspx</guid><wfw:comment>comments/1936929.aspx</wfw:comment><comments>http://blog.csdn.net/turkeyzhou/archive/2007/12/14/1936929.aspx#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>comments/commentRss/1936929.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=1936929</trackback:ping><description>2.注册Spring插件:为了使Struts Action能够访问由Spring管理的Bean,我们就必须要注册一个知道Spring应用上下文的Struts插件.可以在struts-config.xml中通过如下的方式来完成注册.　　  　　 　　 　　ContextLoadPlugin()负责装载一个Spring应用上下文.(具体的说:是一个WebApplicationContext).value属性值为要加载的配置Spring受控Bean的xml文件的URI.　　3.完成第一种集成方案:实现一个知晓Spring的Action基类.　　这种集成方案是从一个公共的能够访问Spring应用上下文的基类中派生所有的Struts Action,但值得庆幸的是:我们不用自己去编写这个知晓Spring应用上下文的基类,因为Spring已经提供了org.springframework.web.struts.ActionSupport:一个org.apache.struts.action.Action的抽象实现.它重载了setServlet()方法以从ContextLoa&lt;img src ="aggbug/1936929.aspx" width = "1" height = "1" /&gt;</description></item><item><dc:creator>corey</dc:creator><title>jdbc+hibernate操纵blob数据</title><link>http://blog.csdn.net/turkeyzhou/archive/2007/09/29/1806888.aspx</link><pubDate>Sat, 29 Sep 2007 19:04:00 GMT</pubDate><guid>http://blog.csdn.net/turkeyzhou/archive/2007/09/29/1806888.aspx</guid><wfw:comment>comments/1806888.aspx</wfw:comment><comments>http://blog.csdn.net/turkeyzhou/archive/2007/09/29/1806888.aspx#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>comments/commentRss/1806888.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=1806888</trackback:ping><description>Oracle的Blob字段比较特殊，他比long字段的性能要好很多，可以用来保存例如图片之类的二进制数据。写入Blob字段和写入其它类型字段的方式非常不同，因为Blob自身有一个cursor，你必须使用cursor对blob进行操作，因而你在写入Blob之前，必须获得cursor才能进行写入，那么如何获得Blob的cursor呢？这需要你先插入一个empty的blob，这将创建一个blob的cursor，然后你再把这个empty的blob的cursor用select查询出来，这样通过两步操作，你就获得了blob的cursor，可以真正的写入blob数据了。BLOB blob = null;BLOB blob = (BLOB) c.getImage();&lt;img src ="aggbug/1806888.aspx" width = "1" height = "1" /&gt;</description></item></channel></rss>