We're updating the issue view to help you get more done. 

Fix column names in EntityHelper.updateByPrimaryKey

Description

EntityHelperUpdateByPrimaryKeyMethodGenerator.java

1 2 3 4 5 6 7 for (PropertyDefinition property : entityDefinition.getPrimaryKey()) { methodBuilder.addCode( "\n.where($1T.column($2S).isEqualTo($3T.bindMarker($2S)))", Relation.class, property.getCqlName(), QueryBuilder.class); }

Since JAVA-2110, property.getCqlName() is a code block, so it should be injected with $2L, not $2S (two occurrences to replace).

The current version will generate a case-sensitive identifier if a built-in naming convention is in use, and garbage for a custom name converter.

Environment

None

Pull Requests

None

Status

Assignee

Olivier Michallat

Reporter

Olivier Michallat

Labels

None

PM Priority

None

Reproduced in

None

External issue ID

None

External issue ID

None

External issue ID

None

External issue ID

None

External issue ID

None

External issue ID

None

Doc Impact

None

Reviewer

None

Size

None

Fix versions

Priority

Minor