Java - Hibernate Tools Query property should be explicitly set for Query Exporter?

左手的ㄟ右手 2021-09-11 00:20 535阅读 0赞

2 down vote favorite












 


i learn Hibernate by follow step here.


But I got this error:



Query property should be explicitly set for Query Exporter



when run Hibernate Code Generation( The last step). Do anyone know it?


Here is Image

















asked
May 13 ‘15 at 11:33








famfamfam

89
2
10



 

2 Answers

active oldest votes















I think you shoud set the reveng.xml file.In the Hibernate Generate Code Configuration window, click the Setup button at the “reveng.xml” line.


Then choose “Create new…”, select the location for the configuration file you will create.Click “refresh”, you will see your schema so you can choose what table you want to reverse engineer.I do not have enough reputation to post screenshots, I am sorry.I hope this helps.














answered
Aug 29 ‘15 at 21:32








 

5eb9f89867a24cf6b7c53014e3c15bea.png i.gif_e_eyJhdiI6NDE0LCJhdCI6NCwiYnQiOjAsImNtIjo0MDQyODMsImNoIjoxMTc4LCJjayI6e30sImNyIjoxNDM0MzE2LCJkaSI6IjE0MTUzMTVhZjE4ZjQ4N2U5NWEzNmQwMDAxMTRhOTUzIiwiZG0iOjEsImZjIjoxNjQ5MzM2LCJmbCI6MTQ0ODM0MiwiaXAiOiI1OC4yNDQuMTkxLjEyMiIsImt3IjoiamF2YSxoaWJlcm5hdGUiLCJudyI6MjIsInBjIjowLCJlYyI6MCwicHIiOjE2MDQsInJ0IjoxLCJyZiI6Imh0dHBzOi8vd3d3LmJhaWR1LmNvbS9saW5rP3VybD1TNlRPT2hsNGFkT29FYjdORmVfc2FHdk9ySlFXckZHVERLQlRWeURZb0NSQWsxMThVdHZHaFR1eVljN01ZQnNidGhwT21LVGlRM2ZuN29WZHdacHoyamdJRUw2OVh6YW1pelptRkdFQXFYRjBWODVyRzd1MjE2VG5xX0wxUGJEU1J6M3V2ZlkxT19YbG1QWjhSV3RRaXhHVXV6OVFZeTJNbjlUSndQQjNIQXVYSXNYeU55SUR2anFWU0F2R3RGa1Emd2Q9JmVxaWQ9YmRjM2E4NmMwMDAxZTg4ZDAwMDAwMDAzNTc2OGYwOGEiLCJzdCI6ODI3NywidWsiOiJ1ZTEtY2U1ODE4OTY5NDFkNDE3MDlhY2IwMjI5YzgwOTRiYWIiLCJ6biI6NDQsInRzIjoxNDY2NDk1MTU5MjUwLCJiZiI6dHJ1ZSwicG4iOiJhZHplcmsxNTYxMjE4NTQ3IiwiZnEiOjB9_s_ocOZrjyqlz9WjWP-twX_kz8yMMY











enter image description hereDon’t select “HQL Query Execution Exporter” in “Hibernate Code Generation Configuration” “Exports” tab.It works for me.






http://stackoverflow.com/questions/30213582/java-hibernate-tools-query-property-should-be-explicitly-set-for-query-exporte


发表评论

表情:
评论列表 (有 0 条评论,535人围观)

还没有评论,来说两句吧...

相关阅读

    相关 HIbernate的@Query

     @Query注解查询适用于所查询的数据无法通过关键字查询得到结果的查询。这种查询可以摆脱像关键字查询那样的约束,将查询直接在相应的接口方法中声明,结构更为清晰,这是Sprin