1 //$Id: PassThroughResultTransformer.java,v 1.3 2005/02/12 07:19:47 steveebersole Exp $2 package org.hibernate.transform;3 4 import java.util.List ;5 6 /**7 * @author max8 */9 public class PassThroughResultTransformer implements ResultTransformer {10 11 public Object transformTuple(Object [] tuple, String [] aliases) {12 return tuple.length==1 ? tuple[0] : tuple;13 }14 15 public List transformList(List collection) {16 return collection;17 }18 19 }20