Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Hibernate Code generation reverse engineering not working

I have set up all the things to run hibernate code generation. I have done it before, it was working for me. I have gone through the steps at http://www.mkyong.com/hibernate/how-to-generate-code-with-hibernate-tools/

But it's not working this time.

It shows me Databse and tables when I extract hibernate configuration in Hibernate view. When I run the code generation configuration it quickly gets completed(I have only 4 tables in MySQL databse). But no code is generated at output directory. No error comes in error log. Nothing seems to happen.

Anyone has faced the same issue?

like image 590
Foolish Avatar asked Aug 18 '26 22:08

Foolish


2 Answers

Just to inform others, The issue in my case was, I was providing a reveng.xml file in step 3. I have written table names in CAPS in this file and in My SQL they are in small.

This was the original issue. reveng.xml should have table names in same case as in Databse.

like image 81
Foolish Avatar answered Aug 21 '26 12:08

Foolish


Double check if you followed step 3 correctly

like image 28
Nikhil Talreja Avatar answered Aug 21 '26 13:08

Nikhil Talreja



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!