All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.hibernate.transform.Transformers Maven / Gradle / Ivy

There is a newer version: 4.2.4
Show newest version
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