Class MapResultTransformer<K,V>
- java.lang.Object
-
- com.vladmihalcea.hibernate.query.MapResultTransformer
-
- com.vladmihalcea.hibernate.type.util.MapResultTransformer<K,V>
-
- All Implemented Interfaces:
java.io.Serializable
,org.hibernate.transform.ResultTransformer
@Deprecated public class MapResultTransformer<K,V> extends MapResultTransformer
Deprecated.useMapResultTransformer
insteadTheMapResultTransformer
allows us to return aMap
from a JPAQuery
.If there are aliases named as
key
orvalue
, then those will be used.Otherwise, the first column value is the key while the second one is the Map value.
For more details about how to use it, check out this article on vladmihalcea.com.
- Since:
- 2.9.0
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
KEY_ALIAS
Deprecated.static java.lang.String
VALUE_ALIAS
Deprecated.
-
Constructor Summary
Constructors Constructor Description MapResultTransformer()
Deprecated.
-
Method Summary
-
Methods inherited from class com.vladmihalcea.hibernate.query.MapResultTransformer
transformList, transformTuple
-
-
-
-
Field Detail
-
KEY_ALIAS
public static final java.lang.String KEY_ALIAS
Deprecated.- See Also:
- Constant Field Values
-
VALUE_ALIAS
public static final java.lang.String VALUE_ALIAS
Deprecated.- See Also:
- Constant Field Values
-
-