The method JDBCBinder.bindOneToOne contains the command: propertyName = revengStrategy.foreignKeyToEntityName(fk.getName(), TableIdentifier.create(fk.getReferencedTable()), fk .getReferencedColumns(), TableIdentifier .create(targetTable), fk.getColumns(), isUnique); And its caller (JDBCBinder.bindOutgoingForeignKeys) contains: Property property = bindOneToOne(rc, foreignKey.getReferencedTable(), foreignKey, processedColumns, true, false); This means that both fromTable and referencedTable parameters at ReverseEngineeringStrategy.foreignKeyToEntityName contains in such case same value -fk.getReferencedTable(). The fix is simple - replace fk.getReferencedTable() at JDBCBinder.bindOneToOne statement with fk.getTable(). |