Skip to content

Commit

Permalink
Include cursor with call in UseJoinColumnForMapping to ChangeType
Browse files Browse the repository at this point in the history
  • Loading branch information
timtebeek committed Sep 3, 2024
1 parent 206a1e5 commit 512268f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ public J.VariableDeclarations visitVariableDeclarations(J.VariableDeclarations m
// The javax.persistence.Column attributes length, precision, and scale are not kept.
maybeRemoveImport(COLUMN);
maybeAddImport(JOIN_COLUMN);
J.VariableDeclarations joinColumn = (J.VariableDeclarations) new ChangeType(COLUMN, JOIN_COLUMN, false).getVisitor().visit(multiVariable, ctx);
J.VariableDeclarations joinColumn = (J.VariableDeclarations) new ChangeType(COLUMN, JOIN_COLUMN, false).getVisitor().visit(multiVariable, ctx, getCursor());
joinColumn = (J.VariableDeclarations) new RemoveAnnotationAttribute(JOIN_COLUMN, "length").getVisitor().visit(joinColumn, ctx);
joinColumn = (J.VariableDeclarations) new RemoveAnnotationAttribute(JOIN_COLUMN, "precision").getVisitor().visit(joinColumn, ctx);
joinColumn = (J.VariableDeclarations) new RemoveAnnotationAttribute(JOIN_COLUMN, "scale").getVisitor().visit(joinColumn, ctx);
Expand Down

0 comments on commit 512268f

Please sign in to comment.