You need to setup your reveng.xml
to only look at specific tables. The tutorial you mentioned does not cover this. If you click Setup beside reveng.xml
(seen in step 3 of that tutorial) you will be taken through a wizard to select what you want.
In the end you should expect to have an xml value like so that restricts to a table you want:
<schema-selection match-schema="COMMON_SCHEMA" match-table="CITY"/>
See the Red Hat site for the exact details on the Hibernate reveng.xml
file.
I believe you are getting that exception because of two tables with the same name.