﻿<?xml version="1.0" encoding="utf-8" standalone="yes"?><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>BlogJava-放松人生，追求完美-随笔分类-大杂烩</title><link>http://www.blogjava.net/hx9111/category/1661.html</link><description>生如夏花，死如秋叶 
生如夏花之绚烂，死如秋叶之静美</description><language>zh-cn</language><lastBuildDate>Wed, 28 Feb 2007 04:10:28 GMT</lastBuildDate><pubDate>Wed, 28 Feb 2007 04:10:28 GMT</pubDate><ttl>60</ttl><item><title>XML和O/R mapping 的讨论!</title><link>http://www.blogjava.net/hx9111/archive/2006/05/10/45512.html</link><dc:creator>我爱夏花,更爱秋叶</dc:creator><author>我爱夏花,更爱秋叶</author><pubDate>Wed, 10 May 2006 09:37:00 GMT</pubDate><guid>http://www.blogjava.net/hx9111/archive/2006/05/10/45512.html</guid><wfw:comment>http://www.blogjava.net/hx9111/comments/45512.html</wfw:comment><comments>http://www.blogjava.net/hx9111/archive/2006/05/10/45512.html#Feedback</comments><slash:comments>2</slash:comments><wfw:commentRss>http://www.blogjava.net/hx9111/comments/commentRss/45512.html</wfw:commentRss><trackback:ping>http://www.blogjava.net/hx9111/services/trackbacks/45512.html</trackback:ping><description><![CDATA[ 
<p style="FONT-SIZE: 10pt; MARGIN: 0in; FONT-FAMILY: SimSun; mso-outline-level: 1">在现在的应用系统中几乎都能看到xml和database的身影,与这两个东西正交的是OO.</p><ul><li><div style="FONT-SIZE: 10pt; MARGIN: 0in; FONT-FAMILY: SimSun; mso-outline-level: 1">XML &lt;==&gt; OO 影射的东西有很多,一般都是使用marshaller架构.</div></li></ul><p style="FONT-SIZE: 10pt; MARGIN: 0in; FONT-FAMILY: SimSun; mso-outline-level: 1"> </p><p style="FONT-SIZE: 10pt; MARGIN: 0in; FONT-FAMILY: SimSun; mso-outline-level: 1">(这里不说用于xml解析的dom和sax模型,只是说xml与pojo的影射关系:)其实再怎么影射也是通过dom或者sax接口的实现进行解析的,还是通过新的javaSE规范Streaming API for XML (StAX), xml和OO的影射只不过进行了抽象封装,把xml到pojo之间的解析部分透明化了,我们这里实际说的其实是JavaEE5.0中一个新的规范Java Architecture for XML Binding (JAXB))</p><p style="FONT-SIZE: 10pt; MARGIN: 0in 0in 0in 0.5in; FONT-FAMILY: SimSun; mso-outline-level: 2">比较有名的框架有:</p><p style="FONT-SIZE: 10pt; MARGIN: 0in 0in 0in 0.5in; FONT-FAMILY: SimSun; mso-outline-level: 2">+ castor 比较有名的一个O/X影射框架,可以根据xsd生成解析框架.(个人比较喜欢使用她)<br /></p><p style="FONT-SIZE: 10pt; MARGIN: 0in 0in 0in 0.5in; FONT-FAMILY: SimSun; mso-outline-level: 2">+ apache 的xmlbean和Commons-Digester(不知道为什么会存在两个同样领域的东西,可能是digester相对来说比较简单,因而它被许多的apache的开源项目使用);<br /></p><p style="FONT-SIZE: 10pt; MARGIN: 0in 0in 0in 0.5in; FONT-FAMILY: SimSun; mso-outline-level: 2">+ JAXB 是JAVAEE中的对于xml和OO对象Binding定制的新的规范(标准阿!);<br /><br /></p><p style="FONT-SIZE: 10pt; MARGIN: 0in; FONT-FAMILY: SimSun; mso-outline-level: 1">实际要研究xml和OO的影射框架,大家不妨看看现有的web service框架就会了解很多了,建议看Codehaus的 XFire 他是一个比较轻量级的WS框架,AXIS2也不错.</p><p style="FONT-SIZE: 10pt; MARGIN: 0in; FONT-FAMILY: SimSun; mso-outline-level: 1">我了解的XML Binding框架就这么多,如果谁知道更好用的可以告诉我,相您请教.</p><ul><li><div style="FONT-SIZE: 10pt; MARGIN: 0in; FONT-FAMILY: SimSun; mso-outline-level: 1">对于O/R mapping 就不用太说了,大家了解的可能都比我多,个人只用过一下几个:</div></li></ul><p style="FONT-SIZE: 10pt; MARGIN: 0in 0in 0in 0.5in; FONT-FAMILY: SimSun; mso-outline-level: 2">+ hibernate ,ibatis ,jdo ,castor jdo(期待EJB3.0种的Persistence规范JPA)对于这几种框架的介绍就不说明了,google一下会出来无数.</p><p style="FONT-SIZE: 10pt; MARGIN: 0in; FONT-FAMILY: SimSun; mso-outline-level: 1"> </p><p style="FONT-SIZE: 10pt; MARGIN: 0in; FONT-FAMILY: SimSun; mso-outline-level: 1">?这里不是想讨论两种技术,而是想听大家对XML到database的影射有什么更好的办法,因为O/X,O/R都有很好的框架了,是否有X/R的好的框架.</p><p style="FONT-SIZE: 10pt; MARGIN: 0in; FONT-FAMILY: SimSun; mso-outline-level: 1">这里我只知道castor 中对从xml到database有一定的支持,但支持的还是不够,hibernate3.0种好象对xml到database进行了支持,但是也是一些简单的支持.<br /><br />不断整理中。。。</p><img src ="http://www.blogjava.net/hx9111/aggbug/45512.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/hx9111/" target="_blank">我爱夏花,更爱秋叶</a> 2006-05-10 17:37 <a href="http://www.blogjava.net/hx9111/archive/2006/05/10/45512.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>这段时间比较忙！可能没时间维护Blog了：（</title><link>http://www.blogjava.net/hx9111/archive/2005/06/25/6705.html</link><dc:creator>我爱夏花,更爱秋叶</dc:creator><author>我爱夏花,更爱秋叶</author><pubDate>Sat, 25 Jun 2005 04:31:00 GMT</pubDate><guid>http://www.blogjava.net/hx9111/archive/2005/06/25/6705.html</guid><wfw:comment>http://www.blogjava.net/hx9111/comments/6705.html</wfw:comment><comments>http://www.blogjava.net/hx9111/archive/2005/06/25/6705.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.blogjava.net/hx9111/comments/commentRss/6705.html</wfw:commentRss><trackback:ping>http://www.blogjava.net/hx9111/services/trackbacks/6705.html</trackback:ping><description><![CDATA[<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><FONT size=2><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'; mso-bidi-font-weight: bold">&nbsp;&nbsp;&nbsp;这几天在研究框架架高层次的抽象问题，还有框架的一些集成问题，可能要没时间维护</SPAN><SPAN lang=EN-US style="mso-bidi-font-weight: bold">Blog</SPAN></FONT><FONT size=2><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'; mso-bidi-font-weight: bold">；框架的初期版本已经开发完毕了，在几次初期的使用中，反映还是不错的，真是高兴。但是还有很多不足的地方，下一阶段对框架的开发，主要就是在调试和测试方面。<BR><BR></SPAN><SPAN lang=EN-US style="mso-bidi-font-weight: bold"><?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /><o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><FONT size=2><SPAN lang=EN-US style="mso-bidi-font-weight: bold"><SPAN style="mso-tab-count: 1">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>JBrain</SPAN><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'; mso-bidi-font-weight: bold">框架的设计的初期目的就是要提供一个基本的企业级运行环境，就好比</SPAN><SPAN lang=EN-US style="mso-bidi-font-weight: bold">JVM</SPAN><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'; mso-bidi-font-weight: bold">一样。而下一期开发的目标就是在</SPAN><SPAN lang=EN-US style="mso-bidi-font-weight: bold">JBrain</SPAN><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'; mso-bidi-font-weight: bold">框架的这一个运行环境的基础上，开发一套建模语言，而</SPAN><SPAN lang=EN-US style="mso-bidi-font-weight: bold">JBrain</SPAN></FONT><FONT size=2><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'; mso-bidi-font-weight: bold">框架就是这种模型语言的运行环境。<BR><BR></SPAN><SPAN lang=EN-US style="mso-bidi-font-weight: bold"><o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><FONT size=2><SPAN lang=EN-US style="mso-bidi-font-weight: bold"><SPAN style="mso-tab-count: 1">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN></SPAN><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'; mso-bidi-font-weight: bold">我们为了这个目标都在研究</SPAN><SPAN lang=EN-US style="mso-bidi-font-weight: bold">MDA</SPAN><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'; mso-bidi-font-weight: bold">，个人觉得</SPAN><SPAN lang=EN-US style="mso-bidi-font-weight: bold">MDA</SPAN><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'; mso-bidi-font-weight: bold">的思想是</SPAN><SPAN style="mso-bidi-font-weight: bold"> </SPAN><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'; mso-bidi-font-weight: bold">“</SPAN><SPAN style="mso-bidi-font-weight: bold"> <SPAN lang=EN-US>Perfection</SPAN></SPAN><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'; mso-bidi-font-weight: bold">”，但是实现他谈何容易，我们研究它只是研究它的思想，通过这种思想，能够给我们以启发。<BR>&nbsp;&nbsp;&nbsp;</SPAN></FONT></P><img src ="http://www.blogjava.net/hx9111/aggbug/6705.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/hx9111/" target="_blank">我爱夏花,更爱秋叶</a> 2005-06-25 12:31 <a href="http://www.blogjava.net/hx9111/archive/2005/06/25/6705.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item></channel></rss>