用myeclipse构建hibernate3.3框架
<wbr></wbr>一、首先新建database explorer
2.<wbr><wbr> 1. <wbr></wbr></wbr></wbr>通过myeclipse提供数据库浏览器连接到我们的oracle数据库(多人开发)
<wbr><wbr><wbr><wbr><wbr>这里请大家小心,如果我们测试</wbr></wbr></wbr></wbr></wbr>
在最后加上 Duser.language=zh
<wbr style="color:rgb(65,65,65); font-family:simsun; font-size:14px; line-height:21px; text-align:left; background-color:rgb(247,250,242)"><span style="color:rgb(65,65,65); font-family:simsun; font-size:14px; line-height:21px; text-align:left; background-color:rgb(247,250,242)"></span><wbr style="color:rgb(65,65,65); font-family:simsun; font-size:14px; line-height:21px; text-align:left; background-color:rgb(247,250,242)"><span style="color:rgb(65,65,65); font-family:simsun; font-size:14px; line-height:21px; text-align:left; background-color:rgb(247,250,242)"></span><wbr style="color:rgb(65,65,65); font-family:simsun; font-size:14px; line-height:21px; text-align:left; background-color:rgb(247,250,242)"><span style="color:rgb(65,65,65); font-family:simsun; font-size:14px; line-height:21px; text-align:left; background-color:rgb(247,250,242)"></span><wbr style="color:rgb(65,65,65); font-family:simsun; font-size:14px; line-height:21px; text-align:left; background-color:rgb(247,250,242)"><span style="color:rgb(65,65,65); font-family:simsun; font-size:14px; line-height:21px; text-align:left; background-color:rgb(247,250,242)"></span><wbr style="color:rgb(65,65,65); font-family:simsun; font-size:14px; line-height:21px; text-align:left; background-color:rgb(247,250,242)"><span style="color:rgb(65,65,65); font-family:simsun; font-size:14px; line-height:21px; text-align:left; background-color:rgb(247,250,242)"></span><wbr style="color:rgb(65,65,65); font-family:simsun; font-size:14px; line-height:21px; text-align:left; background-color:rgb(247,250,242)"><span style="color:rgb(65,65,65); font-family:simsun; font-size:14px; line-height:21px; text-align:left; background-color:rgb(247,250,242)"></span><wbr style="color:rgb(65,65,65); font-family:simsun; font-size:14px; line-height:21px; text-align:left; background-color:rgb(247,250,242)"><br style="color:rgb(65,65,65); font-family:simsun; font-size:14px; line-height:21px; text-align:left; background-color:rgb(247,250,242)"><p style="margin-top:0px; margin-bottom:5px; margin-left:-21pt; padding-top:0px; padding-bottom:0px; border-top-width:0px; border-right-width:0px; border-bottom-width:0px; border-left-width:0px; border-style:initial; border-color:initial; list-style-type:none; list-style-position:initial; word-wrap:normal; word-break:normal; line-height:21px; color:rgb(65,65,65); font-family:simsun; font-size:14px; text-align:left; background-color:rgb(247,250,242)"><span style="word-wrap:normal; word-break:normal; font-family:宋体"><wbr><wbr><wbr><wbr><wbr></wbr></wbr></wbr></wbr></wbr></span><span style="word-wrap:normal; word-break:normal; text-indent:-18pt"><span style="font-family:宋体; word-wrap:normal; word-break:normal">把自己的数据库通过 db 浏览器连接上</span></span></p><p style="margin-top:0px; margin-bottom:5px; margin-left:-21pt; padding-top:0px; padding-bottom:0px; border-top-width:0px; border-right-width:0px; border-bottom-width:0px; border-left-width:0px; border-style:initial; border-color:initial; list-style-type:none; list-style-position:initial; word-wrap:normal; word-break:normal; line-height:21px; color:rgb(65,65,65); font-family:simsun; font-size:14px; text-align:left; background-color:rgb(247,250,242)"><wbr></wbr></p><p style="margin-top:0px; margin-bottom:5px; margin-left:-21pt; padding-top:0px; padding-bottom:0px; border-top-width:0px; border-right-width:0px; border-bottom-width:0px; border-left-width:0px; border-style:initial; border-color:initial; list-style-type:none; list-style-position:initial; word-wrap:normal; word-break:normal; line-height:21px; color:rgb(65,65,65); font-family:simsun; font-size:14px; text-align:left; background-color:rgb(247,250,242)"><span lang="EN-US" style="word-wrap:normal; word-break:normal"><span style="font-family:宋体; word-wrap:normal; word-break:normal"> 二、新建web项目</span></span></p><p style="margin-top:0px; margin-bottom:5px; margin-left:-21pt; padding-top:0px; padding-bottom:0px; border-top-width:0px; border-right-width:0px; border-bottom-width:0px; border-left-width:0px; border-style:initial; border-color:initial; list-style-type:none; list-style-position:initial; word-wrap:normal; word-break:normal; line-height:21px; color:rgb(65,65,65); font-family:simsun; font-size:14px; text-align:left; background-color:rgb(247,250,242)"><span style="font-family:宋体; word-wrap:normal; word-break:normal"> 如果使用myeclipse自dog导入的话,第一步必须做。(引入 hibernate开发包.,同时自动创建hibernate.cfg.xml文件,如果希望把hibernate开发 包 升级,我们可以重新引入包.)</span></p><p style="margin-top:0px; margin-bottom:5px; margin-left:-21pt; padding-top:0px; padding-bottom:0px; border-top-width:0px; border-right-width:0px; border-bottom-width:0px; border-left-width:0px; border-style:initial; border-color:initial; list-style-type:none; list-style-position:initial; word-wrap:normal; word-break:normal; line-height:21px; color:rgb(65,65,65); font-size:14px; text-align:left; background-color:rgb(247,250,242)"><span style="font-family:宋体"><br></span></p><p style="margin-top:0px; margin-bottom:5px; margin-left:-21pt; padding-top:0px; padding-bottom:0px; border-top-width:0px; border-right-width:0px; border-bottom-width:0px; border-left-width:0px; border-style:initial; border-color:initial; list-style-type:none; list-style-position:initial; word-wrap:normal; word-break:normal; line-height:21px; color:rgb(65,65,65); font-family:simsun; font-size:14px; text-align:left; background-color:rgb(247,250,242)"><span style="font-family:宋体; word-wrap:normal; word-break:normal"></span></p><p style="margin-top:0px; margin-bottom:5px; margin-left:-21pt; padding-top:0px; padding-bottom:0px; border-top-width:0px; border-right-width:0px; border-bottom-width:0px; border-left-width:0px; border-style:initial; border-color:initial; list-style-type:none; list-style-position:initial; word-wrap:normal; word-break:normal; line-height:21px; color:rgb(65,65,65); font-family:simsun; font-size:14px; text-align:left; background-color:rgb(247,250,242)"><span style="font-family:宋体; word-wrap:normal; word-break:normal"><br></span></p><p style="margin-top:0px; margin-bottom:5px; margin-left:-21pt; padding-top:0px; padding-bottom:0px; border-top-width:0px; border-right-width:0px; border-bottom-width:0px; border-left-width:0px; border-style:initial; border-color:initial; list-style-type:none; list-style-position:initial; word-wrap:normal; word-break:normal; line-height:21px; color:rgb(65,65,65); font-family:simsun; font-size:14px; text-align:left; background-color:rgb(247,250,242)"><span style="font-family:宋体; word-wrap:normal; word-break:normal"> 三、下面我们使用myeclipse提供的逆向工程,自动的创建domain类和对象关系映射文件.</span></p><div style="color:rgb(65,65,65); font-family:simsun; font-size:14px; line-height:21px; text-align:left; background-color:rgb(247,250,242)"><br></div><span style="color:rgb(65,65,65); font-family:simsun; font-size:14px; line-height:21px; text-align:left; background-color:rgb(247,250,242)"></span><wbr style="color:rgb(65,65,65); font-family:simsun; font-size:14px; line-height:21px; text-align:left; background-color:rgb(247,250,242)"><span style="color:rgb(65,65,65); font-family:simsun; font-size:14px; line-height:21px; text-align:left; background-color:rgb(247,250,242)"></span><p style="margin-top:0px; margin-bottom:5px; margin-left:-21pt; padding-top:0px; padding-bottom:0px; border-top-width:0px; border-right-width:0px; border-bottom-width:0px; border-left-width:0px; border-style:initial; border-color:initial; list-style-type:none; list-style-position:initial; word-wrap:normal; word-break:normal; line-height:21px; color:rgb(65,65,65); font-family:simsun; font-size:14px; text-align:left; background-color:rgb(247,250,242)"><span lang="EN-US" style="word-wrap:normal; word-break:normal"><wbr></wbr></span></p><p style="margin-top:0px; margin-bottom:5px; margin-left:-21pt; padding-top:0px; padding-bottom:0px; border-top-width:0px; border-right-width:0px; border-bottom-width:0px; border-left-width:0px; border-style:initial; border-color:initial; list-style-type:none; list-style-position:initial; word-wrap:normal; word-break:normal; line-height:21px; color:rgb(65,65,65); font-family:simsun; font-size:14px; text-align:left; background-color:rgb(247,250,242)"><span style="font-family:宋体; word-wrap:normal; word-break:normal"><br></span></p><a href="http://photo.blog.sina.com.cn/showpic.html#blogid=976e49570101373p&url=http://s13.sinaimg.cn/orignal/976e4957tc6412022dadc" target="_blank" style="text-decoration:none; color:rgb(76,107,115); font-family:simsun; font-size:14px; line-height:21px; text-align:left; background-color:rgb(247,250,242)"><img src="http://s13.sinaimg.cn/middle/976e4957tc6412022dadc&690" width="593" height="539" name="image_operate_97171343883162563" alt="用myeclipse构建hibernate3.3框架" title="用myeclipse构建hibernate3.3框架" style="margin-top:0px; margin-right:0px; margin-bottom:0px; margin-left:0px; padding-top:0px; padding-right:0px; padding-bottom:0px; padding-left:0px; border-top-width:0px; border-right-width:0px; border-bottom-width:0px; border-left-width:0px; border-style:initial; border-color:initial; list-style-type:none; list-style-position:initial"></a><br style="color:rgb(65,65,65); font-family:simsun; font-size:14px; line-height:21px; text-align:left; background-color:rgb(247,250,242)"><br style="color:rgb(65,65,65); font-family:simsun; font-size:14px; line-height:21px; text-align:left; background-color:rgb(247,250,242)"><a href="http://photo.blog.sina.com.cn/showpic.html#blogid=976e49570101373p&url=http://s9.sinaimg.cn/orignal/976e4957tc64120559108" target="_blank" style="color:rgb(76,107,115); font-family:simsun; font-size:14px; line-height:21px; text-align:left; background-color:rgb(247,250,242)"><img src="http://s9.sinaimg.cn/middle/976e4957tc64120559108&690" width="690" height="443" name="image_operate_68561343883184520" alt="用myeclipse构建hibernate3.3框架" title="用myeclipse构建hibernate3.3框架" style="margin-top:0px; margin-right:0px; margin-bottom:0px; margin-left:0px; padding-top:0px; padding-right:0px; padding-bottom:0px; padding-left:0px; border-top-width:0px; border-right-width:0px; border-bottom-width:0px; border-left-width:0px; border-style:initial; border-color:initial; list-style-type:none; list-style-position:initial"></a><br style="color:rgb(65,65,65); font-family:simsun; font-size:14px; line-height:21px; text-align:left; background-color:rgb(247,250,242)"><p style="margin-top:0px; margin-bottom:5px; margin-left:-21pt; padding-top:0px; padding-bottom:0px; border-top-width:0px; border-right-width:0px; border-bottom-width:0px; border-left-width:0px; border-style:initial; border-color:initial; list-style-type:none; list-style-position:initial; word-wrap:normal; word-break:normal; line-height:21px; color:rgb(65,65,65); font-family:simsun; font-size:14px; text-align:left; background-color:rgb(247,250,242)"><span lang="EN-US" style="word-wrap:normal; word-break:normal"><wbr><wbr><wbr>java</wbr></wbr></wbr></span><span style="word-wrap:normal; word-break:normal; font-family:宋体">对象(属性)</span><span lang="EN-US" style="word-wrap:normal; word-break:normal"><---------1. java</span><span style="word-wrap:normal; word-break:normal; font-family:宋体">类型</span><span lang="EN-US" style="word-wrap:normal; word-break:normal">2. hibernate types-------------></span><span style="word-wrap:normal; word-break:normal; font-family:宋体">表字段类型</span></p><p><span style="color:#ff0000">注意取消创建抽象类选项。</span></p><p><img src="http://img.my.csdn.net/uploads/201210/12/1350020358_3039.png" alt=""><br></p></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr>
相关推荐
A.在myeclise中恢复例子开发环境:1>在myeclipse中新建一个web工程,项目名称自己任意取名,"J2EE Specification Level"一栏选择"J2EE1.4",然后点击"