Class Overview
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.
Public Constructors
public
NativeSQLQueryRootReturn
(String alias, String entityName, LockMode lockMode)
Construct a return representing an entity returned at the root
of the result.
Parameters
alias
| The result alias |
entityName
| The entity name. |
lockMode
| The lock mode to apply
|
public
NativeSQLQueryRootReturn
(String alias, String entityName, Map propertyResults, LockMode lockMode)
Parameters
alias
| The result alias |
entityName
| The entity name. |
propertyResults
| Any user-supplied column->property mappings |
lockMode
| The lock mode to apply
|
Public Methods
public
boolean
equals
(Object o)
public
String
getReturnEntityName
()
The name of the entity to be returned.