We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 56af2f6 commit 3e89368Copy full SHA for 3e89368
src/main/java/io/retrorock/theory/helpers/ModelMapper.java
@@ -108,14 +108,14 @@ public ModelMapper setPrimaryKeyName(String primaryKeyName) {
108
109
public ModelMapper pk(Integer id) {
110
ArrayList<String> fields = new ArrayList<String>();
111
- fields.add(tableAlias+"."+primaryKey+" = " + id);
+ fields.add(tableAlias+"."+primaryKeyName+" = " + id);
112
this.where(fields);
113
return this;
114
}
115
116
public ModelMapper pk(String id) {
117
118
- fields.add(tableAlias+"."+primaryKey+" = '" + id + "'");
+ fields.add(tableAlias+"."+primaryKeyName+" = '" + id + "'");
119
120
121
0 commit comments