Investigate the why multiple identical indexes and foreign keys cause invalid DAO java classes.
This has been seen in PostgreSQL. PostgreSQL allows you to crete duplicated unique indexes for the same column(s). Similarly, the same issue happens with multiple identical FKs.
Resolved.