Package com.vladmihalcea.hibernate.query
Interface ListResultTransformer
-
- All Superinterfaces:
org.hibernate.transform.ResultTransformer
,java.io.Serializable
- All Known Subinterfaces:
ListResultTransformer
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface public interface ListResultTransformer extends org.hibernate.transform.ResultTransformer
TheListResultTransformer
simplifies the way we can use a ResultTransformer by defining a default implementation for theResultTransformer.transformList(List)
method.This way, the
ListResultTransformer
can be used as a functional interface.For more details about how to use it, check out this article on vladmihalcea.com.
- Since:
- 2.9.0
-
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default java.util.List
transformList(java.util.List tuples)
Default implementation returning the tuples list as-is.
-