org.hibernate.engine.query.sql
Class NativeSQLQueryRootReturn
- NativeSQLQueryReturn, Serializable
public class NativeSQLQueryRootReturn
Represents a return defined as part of a native sql query which
names a "root" entity. A root entity means it is explicitly a
"column" in the result, as opposed to a fetched relationship or role.
NativeSQLQueryRootReturn
public NativeSQLQueryRootReturn(String alias,
String entityName,
Map propertyResults,
LockMode lockMode)
alias
- The result aliasentityName
- The entity name.propertyResults
- Any user-supplied column->property mappingslockMode
- The lock mode to apply
NativeSQLQueryRootReturn
public NativeSQLQueryRootReturn(String alias,
String entityName,
LockMode lockMode)
Construct a return representing an entity returned at the root
of the result.
alias
- The result aliasentityName
- The entity name.lockMode
- The lock mode to apply
getReturnEntityName
public String getReturnEntityName()
The name of the entity to be returned.