org.hibernate.transform
Class RootEntityResultTransformer
- Serializable, ResultTransformer
public final class RootEntityResultTransformer
implements Serializable
ResultTransformer
implementation which limits the result tuple
to only the "root entity".
Since this transformer is stateless, all instances would be considered equal.
So for optimization purposes we limit it to a single, singleton
instance
.
boolean | equals(Object other)
|
int | hashCode()
|
Object | transformTuple(Object[] tuple, String[] aliases) - Return just the root entity from the row tuple.
|
RootEntityResultTransformer
public RootEntityResultTransformer()
Use the INSTANCE
reference instead of explicitly creating a new one (to be removed in 3.4).
Instantiate RootEntityResultTransformer.
equals
public boolean equals(Object other)
hashCode
public int hashCode()