org.hibernate.transform

Class Transformers


public final class Transformers
extends java.lang.Object

Field Summary

static ResultTransformer
ALIAS_TO_ENTITY_MAP
Each row of results is a Map from alias to values/entities
static ResultTransformer
TO_LIST
Each row of results is a List

Method Summary

static ResultTransformer
aliasToBean(Class target)
Creates a resulttransformer that will inject aliased values into instances of Class via property methods or fields.

Field Details

ALIAS_TO_ENTITY_MAP

public static final ResultTransformer ALIAS_TO_ENTITY_MAP
Each row of results is a Map from alias to values/entities

TO_LIST

public static final ResultTransformer TO_LIST
Each row of results is a List

Method Details

aliasToBean

public static ResultTransformer aliasToBean(Class target)
Creates a resulttransformer that will inject aliased values into instances of Class via property methods or fields.