Class NativeSQLQueryRootReturn

  • All Implemented Interfaces:
    java.io.Serializable, NativeSQLQueryReturn

    public class NativeSQLQueryRootReturn
    extends NativeSQLQueryNonScalarReturn
    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.
    See Also:
    Serialized Form
    • Constructor Detail

      • NativeSQLQueryRootReturn

        public NativeSQLQueryRootReturn​(java.lang.String alias,
                                        java.lang.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
      • NativeSQLQueryRootReturn

        public NativeSQLQueryRootReturn​(java.lang.String alias,
                                        java.lang.String entityName,
                                        java.util.Map<java.lang.String,​java.lang.String[]> 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