|
I think I found what the problem is. In Table.java line 672 where the foreign keys for the table are created, we have multiple foreign keys created with the same name. The name is generated using:
Constraint.generateName( fk.generatedConstraintNamePrefix(), this, keyColumns )
and the parameters:
fk.generatedConstraintNamePrefix() = "FK_"
this = the current table (entity_filters)
keyColumns = [Column(entity_pk)]
are ALWAYS the same, while the referenceEntityName is changing every time: PriceModel, TaxModel,StockLevelModel....
I think this method Constraint.generateName must also take the referenceEntityName as parameter.
|