之前用过hibernate tools,这次重新拿起的时候有些忘了。
在eclipse中如下插件,选择hibernate tools
JBoss Tools - Latest Stable Release - http://download.jboss.org/jbosstools/updates/stable/
tools中可以新建4类文件:
cfg.xml
hbm.xml
console.xml
reveng.xml
前两个最重要,console.xml可有可无。
1.这里有个注意的地方,选择hibernate3.5版本的配置,否则会报
org.hibernate.console.HibernateConsoleRuntimeException: Received a NoClassDefFoundError, probably the console configuration classpath is incomplete or contains conflicting versions of the same class
Caused by: java.lang.NoClassDefFoundError: Could not initialize class org.hibernate.cfg.reveng.OverrideRepository
2.另外由tools生成的dao里sessionfactory是由jndi获得,这个需要自己在容器里注册么?
分享到:
相关推荐
NULL 博文链接:https://zprill.iteye.com/blog/729325
HibernateTools-3.2.4,Hibernate工具包,开发使用,欢迎下载
hibernate Tools eclipse插件的使用视频教程(自己录制有部分地方不好.见谅)只针对那些用eclipse开发j2ee web程序中些hibernate dao java有困难的用户!!
下载并安装hibernate tools插件,下载地址:...安装完Hibernate tools插件后,在eclipse安装目录下搜索并替换hibernate-tools-5.2.0.Beta1.jar文件,即可生成带中文注释的类和hbm文件
今天研究了半天如何安装使用hibernate tools,整合了一下网上下载的资料,给大家看看
hibernate tools源码运行修改需要的jar 源码下载地址是http://anonsvn.jboss.org/repos/hibernate/tags/TOOLS_3_2_4_GA/
能自动产生hibernate的配置文件cfg.xml、entity class、hbm.xml以及DAO等
解压,将links和myplugin文件夹,放在这个E:\eclipse-jee-juno-SR2-win32\eclipse下,对应位置写在hibernatetools.link文件中,用记事本打开。这是我的位置。你的位置改变,你要重写hibernatetools.link中的路径。 ...
HibernateTools-3.2.4.Beta1-R200810311334.zip
Eclipse 在线配置 Hibernate Tools
Hibernate Tools 3.2.0 beta 8Hibernate Tools 3.2.0 beta 8
hibernatetools eclipse下的hibernate插件
eclipse下使用hibernate tools实现hibernate逆向工程时 生成实体类时可以自动添加数据库中的注释
Hibernate Tools for Eclipse Plugins 的安装和使用
hibernatetools-Update-4.1.1.zip
Hibernatetools_Reference_Guide
Hibernate Tools is a toolset for Hibernate implemented as an integrated suite of Eclipse plugins, together with a unified Ant task for integration into the build cycle. Hibernate Tools is a core ...
hibernate tools的使用教程
hibernate-tools.jar