hibernate tools 生成pojo 注解

eclipse官网下载相应版本hibernate-tools或使用update site更新
1.下载hibernate-tools
eclipse(Indigo) - help - install new software - work with输入
http://download.jboss.org/jbosstools/updates/stable/indigo/
选择Abridged JBoss Tools 3.3 - Hibernate Tools - next更新



2.eclipse工具栏如没有hibernate code Generation工具栏,在工具栏鼠标右键,选择
customize perspective..,打开customize perspective窗口,选择command groups availability选项,勾选hibernate code Generation。





3.参考博客http://maimode.iteye.com/blog/1630670
4.最后生成pojo是选择Main后边的Exporters选项,setting勾选Generate EJB3 annotations,exproters勾选Domain code

猜你喜欢

转载自lizy9456.iteye.com/blog/1980860
今日推荐