Skip to content

case mismatch in foreign key generation - querydsl-sql-codegen-3.3.2.jar #683

Description

@emazv72

When generating classes with the following code:

String pkg ="it.next.catol.model";
MetaDataExporter exporter = new MetaDataExporter(); 
exporter.setSchemaPattern("catol");
exporter.setPackageName(pkg);
exporter.setTargetFolder(new File("src"));
exporter.export(conn.getMetaData());

it generates the following code:

public final StringPath mProductBomId = createString("mProductBomId");
...
public final com.mysema.query.sql.ForeignKey<QMProduct> mproductBomproduct = createForeignKey(mProductbomId, "M_PRODUCT_ID");
...

There's a mismatch in the variable casing: mProductbomId should be mProductBomId.

DB : MySQL 5.6.16
JDBC Driver : mysql-connector-java-5.1.21

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions