TupleTransformer and ResultTransformer #4630
Replies: 1 comment 1 reply
-
The new interfaces are Functional. I just prefer the actual contract, users can certainly pass in lambdas, etc |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
H6 introduces
TupleTransformer
andResultTransformer
as a replacement forResultTransformer
.I understand that there is pressure from some quarters to have "something" to replace
ResultTransformer
, even though I personally don't see the need.But I don't think I understand why we need to introduce new interfaces instead of just using
BiFunction<Object[],String[],T>
andFunction<List<Object>,List<T>>
in the signature ofQuery.set TupleTransformer()
andQuery.set ResultTransformer()
. To me, those are the built-in types that Java provides for this, and we don't need to define anything new.WDYT, @sebersole ?
Beta Was this translation helpful? Give feedback.
All reactions