Eclipse 3.6
AppFuse Struts2 2.1.0
JBoss Hibernate Tools 3.4.0
二、JBoss Hibernate Tools 3.4.0安装
http://download.jboss.org/jbosstools/updates/stable/helios/
All JBoss Tools 3.2.x->Hibernate Tools 3.4.0.v20110729-2006-H171-Final
三、从数据库表生成Java类
1.打开Hibernate视图
2.Hibernate Configurations->Add Configuration...

3.配置Hibernate

Property file:选择数据库连接配置文件
Configuration file:选择Hibernate配置文件

Database dialect:选择数据库对应的方言
4.打开Hibernate Code Generation Configurations...

Console configurations:选择刚才建立的配置


reveng.xml:选择Setup,Create new...

点击Refresh,列出所有用户,然后选择其中要使用的表
四、slf4j冲突
1.查看Database时报错,错误信息
An internal error occurred during: "Fetching children of Database". org.slf4j.spi.LocationAwareLogger.log(Lorg/slf4j/Marker;Ljava/lang/String;ILjava/lang/String;[Ljava/lang/Object;Ljava/lang/Throwable;)V

2.解决方法
在pom.xml中将
1.6.1
改成
1.5.8