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

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

Comments

Projects
None yet
2 participants
@dmiorandi

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

This comment has been minimized.

Show comment
Hide comment
@timowest

timowest May 27, 2013

Member

Released in 3.2.0

Member

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