I am using the Maven project of Hibernate tools to reverse engineer a Database. I have some table for which I would the class name to be different from the table name. So I added an entry to hibrnate.reveng.xml to change the class name.
<table schema="informix" name="u_test1" class="xxx.xxx.Test1"></table>.
The generation now fails with below error:
hbm2java failed: Association xxx.xxx.Test2.UTest1s references unmapped class: xxx.xxx.UTest1
If I am asking the entity name to be different I am assuming it will also change the references to use the new name. Please let me know if I am missing some thing.