Skip to content

Commit

Permalink
updated templar, use functionAdd
Browse files Browse the repository at this point in the history
  • Loading branch information
synapticloop committed Aug 17, 2015
1 parent c276cb3 commit 62ed04b
Show file tree
Hide file tree
Showing 6 changed files with 4 additions and 4 deletions.
Binary file modified dist/h2zero.jar
Binary file not shown.
Binary file modified dist/h2zero.zip
Binary file not shown.
Binary file modified lib/runtime/templar.jar
Binary file not shown.
2 changes: 1 addition & 1 deletion sonar-project.properties
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,4 @@ sonar.projectVersion=1.0
sonar.language=java
sonar.sources=src/main/java
sonar.java.binaries="build/
"sonar.java.libraries=lib/runtime/*.jar,lib/compile/*.jar
sonar.java.libraries=lib/runtime/*.jar,lib/compile/*.jar
4 changes: 2 additions & 2 deletions src/main/template/java-create-model.templar
Original file line number Diff line number Diff line change
Expand Up @@ -469,7 +469,7 @@ public class {table.javaClassName} {if !table.isConstant}extends ModelBase {endi
{endif}

{if !table.isConstant}
updateHitCount({field.fieldIndex} + 1);
updateHitCount({fn:+[field.fieldIndex, '1']});
{endif}

return(this.{field.javaName});
Expand Down Expand Up @@ -511,7 +511,7 @@ public class {table.javaClassName} {if !table.isConstant}extends ModelBase {endi
{endif}

{if !table.isConstant}
updateHitCount({field.fieldIndex} + 1);
updateHitCount({fn:+[field.fieldIndex, '1']});
{endif}

return(this.{field.javaName});
Expand Down
2 changes: 1 addition & 1 deletion src/main/template/java-create-view-model.templar
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ public class {view.javaClassName} extends ViewBase {{{\n}

{-- Now we need the toString Method--}
{\n}
{\t}@Override{\n}
{\t}public String toString() {{{\n}
{\t}{\t}StringBuilder stringBuilder = new StringBuilder();{\n}

Expand All @@ -75,7 +76,6 @@ public class {view.javaClassName} extends ViewBase {{{\n}

{-- Now we need the toJsonString Method--}
{\n}
{\t}@Override{\n}
{\t}public String toJsonString() {{{\n}
{\t}{\t}StringBuilder stringBuilder = new StringBuilder();{\n}

Expand Down

0 comments on commit 62ed04b

Please sign in to comment.