Skip to content

Commit

Permalink
Added condition for embeddable
Browse files Browse the repository at this point in the history
  • Loading branch information
ajaypaul-ibm committed Nov 8, 2024
1 parent b8361df commit 62f6e1d
Showing 1 changed file with 1 addition and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -67,14 +67,7 @@ public void visit(IdExpression expression) {
String variableName = identificationVariable.getVariableName();
// Get id attribute name
ClassDescriptor descriptor = this.queryContext.getDeclaration(variableName).getDescriptor();
List<DatabaseField> primaryKeyFields = descriptor.getPrimaryKeyFields();
// String idAttributeName = getIdAttributeNameByField(descriptor.getMappings(),
// primaryKeyFields.get(0));
// StateFieldPathExpression stateFieldPathExpression = new
// StateFieldPathExpression(expression.getParent(), variableText + "." +
// idAttributeName);
// expression.setStateFieldPathExpression(stateFieldPathExpression);
// expression.getStateFieldPathExpression().accept(this);
List<DatabaseField> primaryKeyFields = descriptor.getPrimaryKeyFields()
if (!isEmbeddable(descriptor.getMappings())) {
for (DatabaseField primaryKeyField : primaryKeyFields) {
String idAttributeName = getIdAttributeNameByField(descriptor.getMappings(), primaryKeyField);
Expand Down

0 comments on commit 62f6e1d

Please sign in to comment.