Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

querydsl-sql-codegen: Wrong FK Generation on Multiple fields FK #412

Closed
dmiorandi opened this issue May 8, 2013 · 1 comment
Closed

querydsl-sql-codegen: Wrong FK Generation on Multiple fields FK #412

dmiorandi opened this issue May 8, 2013 · 1 comment
Labels
Milestone

Comments

@dmiorandi
Copy link

@dmiorandi dmiorandi commented May 8, 2013

when try to reverse engeener a db where you have multiple fields FK,
the first fields is duplicated n time (where n is the number of fields involved in FK).
I've tested version from 2.9.0 to 3.1.1.

The issue is on class com.mysema.query.sql.codegen.MetaDataSerializer line 260

local.append(namingStrategy.getPropertyName(foreignKey.getForeignColumns().get(0), model));
foreign.append("\"" +foreignKey.getParentColumns().get(0) + "\"");

Need to replace get(0) with get(i). I've patched myself and it works

timowest added a commit that referenced this issue May 8, 2013
@timowest
Copy link
Member

@timowest timowest commented May 27, 2013

Released in 3.2.0

@timowest timowest closed this May 27, 2013
@timowest timowest added this to the 3.2.0 milestone Apr 14, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants