File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
src/main/java/org/mybatis/dynamic/sql/util Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 1
1
/**
2
- * Copyright 2016-2017 the original author or authors.
2
+ * Copyright 2016-2019 the original author or authors.
3
3
*
4
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
5
* you may not use this file except in compliance with the License.
@@ -23,8 +23,9 @@ public class ValueMapping<T> extends AbstractColumnMapping implements UpdateMapp
23
23
24
24
private Supplier <T > valueSupplier ;
25
25
26
- private ValueMapping (SqlColumn <T > column ) {
26
+ private ValueMapping (SqlColumn <T > column , Supplier < T > valueSupplier ) {
27
27
super (column );
28
+ this .valueSupplier = valueSupplier ;
28
29
}
29
30
30
31
public T value () {
@@ -37,8 +38,7 @@ public <R> R accept(UpdateMappingVisitor<R> visitor) {
37
38
}
38
39
39
40
public static <T > ValueMapping <T > of (SqlColumn <T > column , Supplier <T > valueSupplier ) {
40
- ValueMapping <T > mapping = new ValueMapping <>(column );
41
- mapping .valueSupplier = valueSupplier ;
41
+ ValueMapping <T > mapping = new ValueMapping <>(column , valueSupplier );
42
42
return mapping ;
43
43
}
44
44
}
You can’t perform that action at this time.
0 commit comments