hibernate 逆向工程问题

org.hibernate.tool.hbm2x.ExporterException: Error while processing Component: scdb.TbDispatcherId with template pojo/Pojo.ftl
Error while processing Component: scdb.TbDispatcherId with template pojo/Pojo.ftl
org.hibernate.tool.hbm2x.ExporterException: Error while processing Component: scdb.TbDispatcherId with template pojo/Pojo.ftl
Error while processing Component: scdb.TbDispatcherId with template pojo/Pojo.ftl
freemarker.core.InvalidReferenceException: Expression pojo.generateManyToOneAnnotation is undefined on line 13, column 3 in pojo/Ejb3PropertyGetAnnotation.ftl.
Expression pojo.generateManyToOneAnnotation is undefined on line 13, column 3 in pojo/Ejb3PropertyGetAnnotation.ftl.

在进行hibernate的逆向工程时,报错这个错误 。
解决办法 :
这里写图片描述

在进行逆向工程时,选中这两个(一个xml一个Domain code)就好了。

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章