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)就好了。

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