Class AliasToBeanResultTransformer<T>

java.lang.Object
org.hibernate.transform.AliasToBeanResultTransformer<T>
All Implemented Interfaces:
Serializable, ResultListTransformer<T>, TupleTransformer<T>, TypedTupleTransformer<T>, ResultTransformer<T>

@Deprecated public class AliasToBeanResultTransformer<T> extends Object implements ResultTransformer<T>, TypedTupleTransformer<T>
Deprecated.
since ResultTransformer is deprecated
Result transformer that allows to transform a result to a user specified class which will be populated via setter methods or fields matching the alias names.
See Also:
  • Constructor Details

    • AliasToBeanResultTransformer

      public AliasToBeanResultTransformer(Class<T> resultClass)
      Deprecated.
  • Method Details

    • getTransformedType

      public Class<T> getTransformedType()
      Deprecated.
      Description copied from interface: TypedTupleTransformer
      The type resulting from this transformation
      Specified by:
      getTransformedType in interface TypedTupleTransformer<T>
    • transformTuple

      public T transformTuple(Object[] tuple, String[] aliases)
      Deprecated.
      Description copied from interface: TupleTransformer
      Tuples are the elements making up each "row" of the query result. The contract here is to transform these elements into the final row shape.
      Specified by:
      transformTuple in interface TupleTransformer<T>
      Parameters:
      tuple - The result elements
      aliases - The result aliases ("parallel" array to tuple)
      Returns:
      The transformed row.
    • equals

      public boolean equals(Object o)
      Deprecated.
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Deprecated.
      Overrides:
      hashCode in class Object