File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed
Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -37,6 +37,9 @@ public static String toSqlOp(int expressionType) {
3737
3838 @ Override
3939 public StringBuilder visit (ConstantExpression e ) {
40+ if (e .getValue () instanceof String ) {
41+ return sb .append ("'" ).append (e .getValue ().toString ()).append ("'" );
42+ }
4043 return sb .append (e .getValue ().toString ());
4144 }
4245
@@ -54,7 +57,8 @@ public StringBuilder visit(LambdaExpression<?> e) {
5457 @ Override
5558 public StringBuilder visit (MemberExpression e ) {
5659 String name = e .getMember ().getName ();
57- name = name .replaceAll ("^(get|is)" , "" ).toLowerCase ();
60+ name = name .replaceAll ("^(get)" , "" )
61+ name = name .substring (0 , 1 ).toLowerCase () + name .substring (1 );
5862 return sb .append (name );
5963 }
6064
@@ -69,4 +73,4 @@ public StringBuilder visit(UnaryExpression e) {
6973 return e .getFirst ().accept (this );
7074 }
7175
72- }
76+ }
You can’t perform that action at this time.
0 commit comments