Eclipse中使用Hibernate-tools反向生成hibernate實體類
一.準備工作
1.Eclipse版本:Kepler Service Release 1。
二.安裝hibernate-tools
1.點擊help—>install new software
2.點擊Add
3.在location中輸入網址:http://download.jboss.org/jbosstools/updates/stable/或http://download.jboss.org/jbosstools/updates/stable/kepler/
在name下,找到JBoss Application Development 下拉,找到Hibernate-Tools,
勾選hibernate-tools
4.等待安裝完成後重新啓動hibernate-tools工具生成好了
二.生成hibernate實體類等
參照此網址:http://blog.sina.com.cn/s/blog_8adb05b7010182qb.html