Skip to content

Commit c237cf2

Browse files
author
synapticloop
committed
updated HITCOUNTS, fixed binder bug
1 parent eaa8594 commit c237cf2

3 files changed

Lines changed: 7 additions & 7 deletions

File tree

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ plugins {
2121
group = 'synapticloop'
2222
archivesBaseName = 'h2zero'
2323
description = """lightweight ORM generator for mysql/sqlite, java with extensions for taglibs and routemaster"""
24-
version = '4.1.7'
24+
version = '4.1.8'
2525

2626
tasks.withType(Javadoc).all { enabled = false }
2727

src/main/resources/java-create-constants.templar

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,7 @@ public class Constants {{{\n}
1212
{\t}// it has been removed from the generation.{\n}{\n}
1313

1414
{loop database.tables as table}
15-
{if !table.isConstant}
16-
{\t}public static final String {table.upperName}_BINDER = "{table.upperName}";{\n}
17-
{endif}
15+
{\t}public static final String {table.upperName}_BINDER = "{table.upperName}";{\n}
1816
{endloop}
1917
{\n}
2018

src/main/resources/java-create-model-hitcounts.templar

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,11 @@ public class Statistics {{{\n}
1818
{\t}public static final String getHitCountJson() {{{\n}
1919
{\t}{\t}StringBuilder stringBuilder = new StringBuilder("[");{\n}
2020
{loop database.tables as table}
21-
{\t}{\t}stringBuilder.append({table.javaClassName}.getHitCountJson());{\n}
22-
{if !tableStatus.last}
23-
{\t}{\t}stringBuilder.append(", ");{\n}
21+
{if !table.isConstant}
22+
{\t}{\t}stringBuilder.append({table.javaClassName}.getHitCountJson());{\n}
23+
{if !tableStatus.last}
24+
{\t}{\t}stringBuilder.append(", ");{\n}
25+
{endif}
2426
{endif}
2527
{endloop}
2628
{\t}{\t}stringBuilder.append("]");{\n}

0 commit comments

Comments
 (0)