类 NativeSQLQueryRootReturn

  • 所有已实现的接口:
    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.
    作者:
    Steve Ebersole
    另请参阅:
    序列化表格
    • 构造器详细资料

      • 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 alias
        entityName - The entity name.
        lockMode - The lock mode to apply
      • NativeSQLQueryRootReturn

        public NativeSQLQueryRootReturn​(String alias,
                                        String entityName,
                                        Map<String,​String[]> propertyResults,
                                        LockMode lockMode)
        参数:
        alias - The result alias
        entityName - The entity name.
        propertyResults - Any user-supplied column->property mappings
        lockMode - The lock mode to apply