org.hibernate.transform.Transformers Maven / Gradle / Ivy
package org.hibernate.transform;
final public class Transformers {
private Transformers() {}
/**
* Each row of results is a Map from alias to values/entities
*/
public static final ResultTransformer ALIAS_TO_ENTITY_MAP = new AliasToEntityMapResultTransformer();
/**
* Each row of results is a List
*/
public static final ResultTransformer TO_LIST = ToListResultTransformer.INSTANCE;
/**
* Creates a resulttransformer that will inject aliased values into
* instances of Class via property methods or fields.
*/
public static ResultTransformer aliasToBean(Class target) {
return new AliasToBeanResultTransformer(target);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy