发布时间 : 星期一 文章Hibernate Spring入门指南(1)更新完毕开始阅读
hibernate.cfg.xml中配置的信息有:数据库驱动程序名、驱动程序URL、数据库名、数据库用户名及密码、表模式名等。
?Hibernate Code Generation…
?New一个新的Hibernate Code Generation,
Name命名自取,在Main中Console configuration选择上面配置的?Output directory选择上面配置的hibernate.cfg.xml存放的路径?勾选Reverse engineer from JDBC Connection?在Package中选择数据库表映射对象生成的路径(如cn.domain)?点击reveng.xml后的Setup…?Create new…
?选中parent folder?Next
?Refresh?选择需要反向功能的表(一次可以多选)?Include…
?Finish