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

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

There is a newer version: 4.2.4
Show newest version
//$Id: PassThroughResultTransformer.java 5685 2005-02-12 07:19:50Z steveebersole $
package org.hibernate.transform;

import java.util.List;

/**
 * @author max
 */
public class PassThroughResultTransformer implements ResultTransformer {

	public Object transformTuple(Object[] tuple, String[] aliases) {
		return tuple.length==1 ? tuple[0] : tuple;
	}

	public List transformList(List collection) {
		return collection;
	}

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy