MapResultTransformer
instead@Deprecated public class MapResultTransformer<K,V> extends MapResultTransformer
MapResultTransformer
allows us to return
a Map
from a JPA Query
.
If there are aliases named as key
or value
,
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.
Modifier and Type | Field and Description |
---|---|
static String |
KEY_ALIAS
Deprecated.
|
static String |
VALUE_ALIAS
Deprecated.
|
Constructor and Description |
---|
MapResultTransformer()
Deprecated.
|
transformList, transformTuple
public static final String KEY_ALIAS
public static final String VALUE_ALIAS
Copyright © 2022. All rights reserved.