Modify to allow the collection to be bind multiple times.
Signed-off-by: ChanHyeongLee <cksgud410@gmail.com>
This commit is contained in:
parent
dbaba3d88a
commit
28f4579a5e
|
@ -526,8 +526,9 @@ abstract class NamedParameterUtils {
|
|||
return;
|
||||
}
|
||||
if (parameter.getValue() instanceof Collection collection) {
|
||||
Iterator<Object> iterator = collection.iterator();
|
||||
Iterator<BindMarker> markers = bindMarkers.iterator();
|
||||
while(markers.hasNext()){
|
||||
Iterator<Object> iterator = collection.iterator();
|
||||
while (iterator.hasNext()) {
|
||||
Object valueToBind = iterator.next();
|
||||
if (valueToBind instanceof Object[] objects) {
|
||||
|
@ -540,6 +541,7 @@ abstract class NamedParameterUtils {
|
|||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
else {
|
||||
for (BindMarker bindMarker : bindMarkers) {
|
||||
bindMarker.bind(target, parameter);
|
||||
|
|
Loading…
Reference in New Issue