javamysqleclipsehibernatejboss-tools

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?


Solution

  • 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.