com.vladmihalcea.hibernate.type.util
Class MapResultTransformer<K,V>
java.lang.Object
com.vladmihalcea.hibernate.query.MapResultTransformer
com.vladmihalcea.hibernate.type.util.MapResultTransformer<K,V>
- All Implemented Interfaces:
- Serializable, org.hibernate.transform.ResultTransformer
Deprecated. use MapResultTransformer instead
@Deprecated
public class MapResultTransformer<K,V>
- extends MapResultTransformer
The 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.
- Since:
- 2.9.0
- Author:
- Vlad Mihalcea
- See Also:
- Serialized Form
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
KEY_ALIAS
public static final String KEY_ALIAS
- Deprecated.
- See Also:
- Constant Field Values
VALUE_ALIAS
public static final String VALUE_ALIAS
- Deprecated.
- See Also:
- Constant Field Values
MapResultTransformer
public MapResultTransformer()
- Deprecated.
Copyright © 2022. All rights reserved.