Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

ROOFLEX-16 Consecutive updates fail because the version column is not…

… changed on the flex client side (fix by Stefan Osterlehner)
  • Loading branch information...
commit debf9e521f12244179f7a7ba59bd481cb4500af4 1 parent a8cf388
@mteodori authored
View
3  ...pringframework.flex.roo.addon/src/main/java/org/springframework/flex/roo/addon/FlexScaffoldMetadata.java
@@ -271,7 +271,8 @@ private MethodMetadata getUpdateMethod() {
InvocableMemberBodyBuilder bodyBuilder = new InvocableMemberBodyBuilder();
bodyBuilder.appendFormalLine("if (" + this.entityReference + " == null) throw new IllegalArgumentException(\"A " + this.entityReference
+ " is required\");");
- bodyBuilder.appendFormalLine(this.entityReference + "." + this.entityMetadata.getMergeMethod().getMethodName() + "();");
+ // fix for https://jira.springsource.org/browse/ROOFLEX-16
+ bodyBuilder.appendFormalLine(this.entityReference + "=" + this.entityReference + "." + this.entityMetadata.getMergeMethod().getMethodName() + "();");
bodyBuilder.appendFormalLine("return " + this.entityReference + ";");
return new MethodMetadataBuilder(getId(), Modifier.PUBLIC, methodName, this.entity, paramTypes, paramNames, bodyBuilder).build();
Please sign in to comment.
Something went wrong with that request. Please try again.