Class MapResultTransformer<K,​V>

  • All Implemented Interfaces:
    java.io.Serializable, org.hibernate.transform.ResultTransformer

    @Deprecated
    public class MapResultTransformer<K,​V>
    extends MapResultTransformer
    Deprecated.
    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
    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.
       
    • Method Summary

      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • MapResultTransformer

        public MapResultTransformer()
        Deprecated.