- 1、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。。
- 2、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 3、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
- 4、该文档为VIP文档,如果想要下载,成为VIP会员后,下载免费。
- 5、成为VIP后,下载本文档将扣除1次下载权益。下载后,不支持退款、换文档。如有疑问请联系我们。
- 6、成为VIP后,您将拥有八大权益,权益包括:VIP文档下载权益、阅读免打扰、文档格式转换、高级专利检索、专属身份标志、高级客服、多端互通、版权登记。
- 7、VIP文档为合作方或网友上传,每下载1次, 网站将根据用户上传文档的质量评分、类型等,对文档贡献者给予高额补贴、流量扶持。如果你也想贡献VIP文档。上传文档
查看更多
Hibernae逆向工程-oracle示例
配置MyEclipse Database Exporerwindow-open perspective-MyEclipse Database Exporer,进入数据库模式下,在DB Browser的空白处单击右键-New,弹出Database Driver对话框:在Driver template选择需要的驱动模板,这里使用ORACLE数据库,并设定好数据库连接信息(url,username,password)。在Driver JAR中,通过Add JARs添加数据库的驱动的jar包:然后点击Test Driver,测试下该配置是否能正常连接,如果报如下的错误:如果连接的是oracle10g,可以如下解决:修改eclipse.ini文件,将-Duser.language=en修改为-Duser.language=zh。如果是oracle9i,上网百度“/blog/212824myeclipse6.0 连接oracle10g的问题 ORA-00604,ORA-12705”参考解决。点击Test Driver,出现:则表示配置成功。新建WEB Project,名为hibernate_demo,然后在项目上右键MyEclipseAdd Hibernate Capabilities,为工程添加Hibernate功能:然后点击next:继续点击next:选择刚才配置好的driver,点击next(不生成这个文件也行,因为大多数项目中都已经写好了这些配置信息):此处没有选择生成SessionFactory,因为项目中已经有该类了,我只是使用myeclipse来生成DAO、POJO和hbm.xml文件。然后点击finish。window-open perspective-MyEclipse Database Exporer,进入数据库模式。打开刚才配置好的数据库连接:选择要使用的用户,找到所需要的表:在表上点击右键Hibernate Reverse Engineering,弹出详细配置的对话框,在这里可以根据自己的需要,选择生成的内容(映射文件,POJOs,DAOs):然后点击next:继续点击next:然后点击finish,生成成功。The rectification measures: (LED Leadership: Luo Mingjun, rectification time: before September 25th, 1, long-term adherence) to solve the problem of lack of awareness of the harm of Party cadres the four winds. To further strengthen education and guidance on the implementation of the central eight provisions, the provincial nine provisions of the county committee of the ten provisions extensive publicity, eliminate thoughtBarriersThe rectification measures: (LED Leadership: Luo Mingjun, rectification time: before September 25th, 1, long-term adherence) to solve the problem of lack of awareness of the harm of Party cadres the four winds. To further strengthen education and guidance on the implementation of the central eight provisions, the provincial nine provisions of the county committee of the ten provisions extensive publicity, eliminate thoughtBarriersThe rectification measures: (LED Leadership: Luo Mingjun, rectification time: before September 25th, 1, long-term adherence) to solve the problem of lack of awareness of the harm of Party cadres the four w
您可能关注的文档
最近下载
- 辽宁省大连市 区2024-2025学年九年级上学期期中物理质量抽测(无答案).pdf VIP
- DL T 448-2016《电能计量装置技术管理规程》.pdf VIP
- 东莞市教师面试试题及答案.doc VIP
- 东贝铸造公司简介ppt模版.ppt VIP
- 2025年上半年教师资格证考试《小学教育教学知识与能力》真题及答案.docx VIP
- 《均匀设计法》-课件.ppt VIP
- 八年级信息上册任务三物联网的应用及影响(陕科版2024).pptx VIP
- JJF(津)03-2020防水卷材不透水仪校准规范.pdf VIP
- 技术交底记录二级技交底记录二级.doc VIP
- OTIS奥的斯XIOTIS西子奥的斯GSC-ECS扶梯现场操作手册-快速扶梯.pdf
原创力文档


文档评论(0)