为hibernate的配置文件添加自动提示功能
来源:互联网 发布:mac好用的下载软件 编辑:程序博客网 时间:2024/05/17 05:07
在编辑 *.hbm.xml 文件时,myeclipse 带有自动提示功能,但 eclipse 是没有自动提示功能的。需要自己手工加上:
1、打开项目中任意一个 *.hbm.xml 文件,看一下文件头,形如以下
找到 http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd(视 hibernate 版本不同有所不同,作者使用的是 hibernate3.6.7)。
2、将项目中用到的 hibernate3.jar 解压缩,找到解压缩后的 org 文件下的 hibernate 文件下的 hibernate-mapping-3.0.dtd 文件。
1、打开项目中任意一个 *.hbm.xml 文件,看一下文件头,形如以下
找到 http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd(视 hibernate 版本不同有所不同,作者使用的是 hibernate3.6.7)。
2、将项目中用到的 hibernate3.jar 解压缩,找到解压缩后的 org 文件下的 hibernate 文件下的 hibernate-mapping-3.0.dtd 文件。
3、Window-->Preferences-->XML-->XML Catalog,选择 XML Catalog Entries 的 Add... 按钮,在弹出的 Add XML Catalog Entry 对话框里,Location 里选择第二步里得到的 hibernate-mapping-3.0.dtd,Key Type 选择 URI,Key 里输入第一步里得到的http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd。OK。
0 0
- 为hibernate的配置文件添加自动提示功能
- 为 eclipse 的 hibernate 配置文件(*.hbm.xml)加上自动提示功能
- 为 eclipse 的 hibernate 配置文件(*.hbm.xml)加上自动提示功能
- 转载:为 eclipse 的 hibernate 配置文件(*.hbm.xml)加上自动提示功能
- 为 eclipse 的 hibernate 配置文件(*.hbm.xml)加上自动提示功能
- 为 eclipse 的 hibernate 配置文件(*.hbm.xml)加上自动提示功能
- 为 eclipse 的 hibernate 配置文件(*.hbm.xml)加上自动提示功能 (转自Defonds 的博客)
- 为Spring配置文件添加提示功能
- Eclipse中hibernate.cfg.xml配置文件加上自动提示功能
- Eclipse中hibernate.cfg.xml配置文件加上自动提示功能
- eclipse为hibernate.cfg.xml添加自动提示
- eclipse为SSH框架.xml文件添加自动提示功能
- eclipse为SSH框架.xml文件添加自动提示功能
- 怎么为struts.xml或dwr.xml的编写添加自动提示功能
- eclipse中hibernate配置文件自动提示
- eclipse下Struts2配置文件添加自动提示
- Eclipse添加DTD文件实现xml的自动提示功能
- Eclipse添加DTD文件实现xml的自动提示功能
- Selenium-webdriver系列教程(四)————如何定位测试元素
- poj3349
- 强制类型转换---看原子的IAP升级例程的问题所引发的测试
- Selenium-webdriver系列教程(五)————如何定位frame中的元素
- Selenium-webdriver系列教程(六)————如何捕获弹出窗口
- 为hibernate的配置文件添加自动提示功能
- Scala类
- JPA JPQL 语句
- 古装齐刘海大比拼 孙俪秒杀众人刘诗诗面目全非
- Selenium-webdriver系列教程(七)————如何处理alert和confirm
- QScrollBar样式
- Android之SharedPreferences权限
- Selenium-webdriver系列教程(八)————如何操作select下拉框
- Android 内存溢出解决方案(OOM)