-
Notifications
You must be signed in to change notification settings - Fork 22
SQL Foreign key generation: Duplicates #39
Comments
Could you maybe report this to the querydsl repository? |
Hello, I debugged a bit more and found that my DB2 returns the same foreignkey multiple times (in the KeyDataFactory) Example: ` ------------ LNK14081 ------------------- ------------ LNK14081 ------------------- So ... The differentiator I notice is the PKTALBE_SCHEME ... so maybe it would be good to add this as a configuration property, to be able to limit the retrieved keys. B; |
Hello,
When generating my Q sources for SQL queryDsl, my foreign keys contain duplicates.
For instance:
public final com.querydsl.sql.ForeignKey lnk14051 = createForeignKey(Arrays.asList(cdRmrkDnr, cdRmrkDnr, cdRmrkDnr, cdRmrkDnr, cdRmrkDnr, cdRmrkDnr), Arrays.asList("DNR", "DNR", "DNR", "DNR", "DNR", "DNR"));
But it should jus tlook like:
public final com.querydsl.sql.ForeignKey lnk14051 = createForeignKey(Arrays.asList(cdRmrkDnr), Arrays.asList("DNR"));
After a bit of deeper diving into the code, I was wondering if it has something to do with missing config parameters (maybe something to do with 'Catalog' ... to limit the amount of found foreignkeys in the metadata)
I'm using plugin:
`
`Any help would be highly appreciated :)
The text was updated successfully, but these errors were encountered: