Class AliasToBeanResultTransformer<T>
java.lang.Object
org.hibernate.transform.AliasToBeanResultTransformer<T>
- All Implemented Interfaces:
TupleTransformer<T>, TypedTupleTransformer<T>
@Deprecated
public class AliasToBeanResultTransformer<T>
extends Object
implements TypedTupleTransformer<T>
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanDeprecated.static <X> TypedTupleTransformer<X> forBeanClass(Class<X> type) Deprecated.Deprecated.The type resulting from this transformationinthashCode()Deprecated.transformTuple(Object[] tuple, String[] aliases) Deprecated.Tuples are the elements making up each "row" of the query result.
-
Constructor Details
-
AliasToBeanResultTransformer
-
-
Method Details
-
forBeanClass
Deprecated. -
getTransformedType
Deprecated.Description copied from interface:TypedTupleTransformerThe type resulting from this transformation- Specified by:
getTransformedTypein interfaceTypedTupleTransformer<T>
-
transformTuple
Deprecated.Description copied from interface:TupleTransformerTuples 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:
transformTuplein interfaceTupleTransformer<T>- Parameters:
tuple- The result elementsaliases- The result aliases ("parallel" array to tuple)- Returns:
- The transformed row.
-
equals
-
hashCode
-
select new MyClass(...) ...) or using a ConstructorResult