File tree Expand file tree Collapse file tree 2 files changed +6
-8
lines changed
Expand file tree Collapse file tree 2 files changed +6
-8
lines changed Original file line number Diff line number Diff line change 11Lambda2sql (lambda) -> "sql"
22==========
33
4- [ ![ Release ] ( https://img.shields. io/github/tag/ ajermakovics/lambda2sql.svg?label=version )] ( https://jitpack.io/#ajermakovics/lambda2sql/v0.1 )
4+ [ ![ ] ( https://jitpack. io/v/ ajermakovics/lambda2sql.svg )] ( https://jitpack.io/#ajermakovics/lambda2sql )
55
66Convert Java 8 lambdas to SQL statements.
77
@@ -51,21 +51,18 @@ Current version only works with predicates and supports the following operators:
5151Install
5252-------
5353
54- You can get the library using JitPack https://jitpack.io/#ajermakovics/lambda2sql/v0.1
54+ You can get the library using JitPack https://jitpack.io/#ajermakovics/lambda2sql/0.3
5555
5656``` gradle
5757repositories {
5858 maven { url "https://jitpack.io" }
5959}
6060dependencies {
61- compile 'com.github.ajermakovics:lambda2sql:v0.1 '
61+ compile 'com.github.ajermakovics:lambda2sql:0.3 '
6262}
6363```
6464
6565Build
6666---------
6767
6868` gradle jar ` or ` gradle fatjar ` to include dependencies.
69-
70- or you can just [ download the fat jar] ( http://dl.bintray.com/ajermakovics/jar/lambda2sql-0.1.jar ) .
71-
Original file line number Diff line number Diff line change 11package lambda2sql ;
22
33import com .trigersoft .jaque .expression .*;
4+ import java .util .List ;
5+ import java .util .ArrayList ;
46
57import java .util .ArrayList ;
68
@@ -10,7 +12,7 @@ public class ToSqlVisitor implements ExpressionVisitor<StringBuilder> {
1012
1113 private StringBuilder sb = new StringBuilder ();
1214 private Expression body ;
13- private ArrayList <ConstantExpression > parameters = new ArrayList <>();
15+ private List <ConstantExpression > parameters = new ArrayList <>();
1416
1517 private static String toSqlOp (int expressionType ) {
1618 switch (expressionType ) {
@@ -64,7 +66,6 @@ public StringBuilder visit(MemberExpression e) {
6466 String name = e .getMember ().getName ();
6567 name = name .replaceAll ("^(get)" , "" );
6668 name = name .substring (0 , 1 ).toLowerCase () + name .substring (1 );
67-
6869 return sb .append (name );
6970 }
7071
You can’t perform that action at this time.
0 commit comments