Eclipse反向生成hibernate实体类等的方法

来源:互联网 发布:修改sftp端口 编辑:程序博客网 时间:2024/04/26 12:43

Eclipse中使用Hibernate-tools反向生成hibernate实体类 

myeclipse中生成hibernate的实体类很容易,但是要想在eclipse中产生和eclipse同样的效果,那就要费一点小事了啊,从网上找的很多资料都是一个模板抄来抄去的,但是不全,下面我来给大家来个史上最全的版本,使用最新的eclipse版本,最新的hibernate版本。

一.准备工作

1.Eclipse版本:eclipse-jee-kepler-R-win32(最新版)

二.安装hibernate-tools

1.点击help>install new software

2.点击Add

 

 

 

3.在location中输入网址:http://download.jboss.org/jbosstools/updates/stable/kepler/

勾选hibernate-tools

 

4.等待安装完成后重新启动hibernate-tools工具生成好了

二.生成hibernate实体类等

参照此网址:http://blog.sina.com.cn/s/blog_8adb05b7010182qb.html