[MyEclipse] Hibernate hbm Template
修改了hbm模板,生成的hibernate-mapping.hbm文件屏蔽catalog属性。
hibernate-mapping文件如果带有catalog属性,在执行是会把表名拼接为catalog__table,产生错误。
删除persistentclass.hbm.vm内如下代码,
#if ($clazz.table.catalog)
catalog="$clazz.table.catalog"
#end
替换MyEclipse Enterprise Workbench 4.1.1 GA\eclipse\plugins\com.genuitec.org.hibernate.eclipse_4.1.1目录下的org.hibernate.eclipse.jar里persistentclass.hbm.vm即可。
hibernate-mapping文件如果带有catalog属性,在执行是会把表名拼接为catalog__table,产生错误。
删除persistentclass.hbm.vm内如下代码,
![[MyEclipse] <wbr>Hibernate <wbr>hbm <wbr>Template [MyEclipse] <wbr>Hibernate <wbr>hbm <wbr>Template](http://simg.sinajs.cn/blog7style/images/common/sg_trans.gif)
![[MyEclipse] <wbr>Hibernate <wbr>hbm <wbr>Template [MyEclipse] <wbr>Hibernate <wbr>hbm <wbr>Template](http://simg.sinajs.cn/blog7style/images/common/sg_trans.gif)
![[MyEclipse] <wbr>Hibernate <wbr>hbm <wbr>Template [MyEclipse] <wbr>Hibernate <wbr>hbm <wbr>Template](http://simg.sinajs.cn/blog7style/images/common/sg_trans.gif)
替换MyEclipse Enterprise Workbench 4.1.1 GA\eclipse\plugins\com.genuitec.org.hibernate.eclipse_4.1.1目录下的org.hibernate.eclipse.jar里persistentclass.hbm.vm即可。