Class Transformers

java.lang.Object
org.hibernate.transform.Transformers

@Deprecated public final class Transformers extends Object
Deprecated.
Not sure how useful these are anymore.
  • Field Details

  • Method Details

    • beanTransformer

      public static <T> TypedTupleTransformer<T> beanTransformer(Class<T> target)
      Deprecated.
      Creates a ResultTransformer that will inject aliased values into instances of Class via property methods or fields.
    • constructorTransformer

      public static <T> TypedTupleTransformer<T> constructorTransformer(Constructor<T> constructor)
      Deprecated.
      Creates a ResultTransformer that will inject aliased values into instances of Class via property methods or fields.
    • mapTransformer

      public static TypedTupleTransformer<Map<String,Object>> mapTransformer()
      Deprecated.
      Essentially the same as using HQL select new map(...) .... Ultimately transforms the result from List<Object[]> to List<Map<String,Object>>.
      See Also:
    • listTransformer

      public static TypedTupleTransformer<List<Object>> listTransformer()
      Deprecated.
      Essentially the same as using HQL select new list(...) .... Ultimately transforms the result from List<Object[]> to List<List<Object>>.
    • aliasToBean

      public static <T> TypedTupleTransformer<T> aliasToBean(Class<T> target)
      Deprecated.
      Creates a ResultTransformer that will inject aliased values into instances of Class via property methods or fields.
    • aliasToConstructor

      public static <T> TypedTupleTransformer<T> aliasToConstructor(Constructor<T> constructor)
      Deprecated.
      Creates a ResultTransformer that will inject aliased values into instances of Class via property methods or fields.