KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > hibernate > transform > RootEntityResultTransformer


1 //$Id: RootEntityResultTransformer.java,v 1.1 2004/06/03 16:31:30 steveebersole Exp $
2
package org.hibernate.transform;
3
4 import java.util.List JavaDoc;
5
6 /**
7  * @author Gavin King
8  */

9 public class RootEntityResultTransformer implements ResultTransformer {
10
11     public Object JavaDoc transformTuple(Object JavaDoc[] tuple, String JavaDoc[] aliases) {
12         return tuple[ tuple.length-1 ];
13     }
14
15     public List JavaDoc transformList(List JavaDoc collection) {
16         return collection;
17     }
18
19 }
20
Popular Tags