Examples of addQueryReturn()


Examples of org.hibernate.engine.ResultSetMappingDefinition.addQueryReturn()

          type = TypeFactory.heuristicType( typeFromXML );
          if ( type == null ) {
            throw new MappingException( "could not determine type " + type );
          }
        }
        definition.addQueryReturn( new NativeSQLQueryScalarReturn( column, type ) );
      }
      else if ( "return".equals( name ) ) {
        definition.addQueryReturn( bindReturn( returnElem, mappings, cnt ) );
      }
      else if ( "return-join".equals( name ) ) {
View Full Code Here

Examples of org.hibernate.engine.ResultSetMappingDefinition.addQueryReturn()

          }
        }
        definition.addQueryReturn( new NativeSQLQueryScalarReturn( column, type ) );
      }
      else if ( "return".equals( name ) ) {
        definition.addQueryReturn( bindReturn( returnElem, mappings, cnt ) );
      }
      else if ( "return-join".equals( name ) ) {
        definition.addQueryReturn( bindReturnJoin( returnElem, mappings ) );
      }
      else if ( "load-collection".equals( name ) ) {
View Full Code Here

Examples of org.hibernate.engine.ResultSetMappingDefinition.addQueryReturn()

      }
      else if ( "return".equals( name ) ) {
        definition.addQueryReturn( bindReturn( returnElem, mappings, cnt ) );
      }
      else if ( "return-join".equals( name ) ) {
        definition.addQueryReturn( bindReturnJoin( returnElem, mappings ) );
      }
      else if ( "load-collection".equals( name ) ) {
        definition.addQueryReturn( bindLoadCollection( returnElem, mappings ) );
      }
    }
View Full Code Here

Examples of org.hibernate.engine.ResultSetMappingDefinition.addQueryReturn()

      }
      else if ( "return-join".equals( name ) ) {
        definition.addQueryReturn( bindReturnJoin( returnElem, mappings ) );
      }
      else if ( "load-collection".equals( name ) ) {
        definition.addQueryReturn( bindLoadCollection( returnElem, mappings ) );
      }
    }
    return definition;
  }
View Full Code Here

Examples of org.hibernate.engine.ResultSetMappingDefinition.addQueryReturn()

      propertyresults = propertyresults.isEmpty() ? CollectionHelper.EMPTY_MAP : propertyresults;
      NativeSQLQueryRootReturn result =
          new NativeSQLQueryRootReturn(
              "alias" + entityAliasIndex++, entity.entityClass().getName(), propertyresults, LockMode.READ
          );
      definition.addQueryReturn( result );
    }

    for (ColumnResult column : ann.columns()) {
      definition.addQueryReturn( new NativeSQLQueryScalarReturn( column.name(), null ) );
    }
View Full Code Here

Examples of org.hibernate.engine.ResultSetMappingDefinition.addQueryReturn()

          );
      definition.addQueryReturn( result );
    }

    for (ColumnResult column : ann.columns()) {
      definition.addQueryReturn( new NativeSQLQueryScalarReturn( column.name(), null ) );
    }

    if ( isDefault ) {
      mappings.addDefaultResultSetMapping( definition );
    }
View Full Code Here

Examples of org.hibernate.engine.ResultSetMappingDefinition.addQueryReturn()

          type = TypeFactory.heuristicType( typeFromXML );
          if ( type == null ) {
            throw new MappingException( "could not determine type " + type );
          }
        }
        definition.addQueryReturn( new NativeSQLQueryScalarReturn( column, type ) );
      }
      else if ( "return".equals( name ) ) {
        definition.addQueryReturn( bindReturn( returnElem, mappings, cnt ) );
      }
      else if ( "return-join".equals( name ) ) {
View Full Code Here

Examples of org.hibernate.engine.ResultSetMappingDefinition.addQueryReturn()

          }
        }
        definition.addQueryReturn( new NativeSQLQueryScalarReturn( column, type ) );
      }
      else if ( "return".equals( name ) ) {
        definition.addQueryReturn( bindReturn( returnElem, mappings, cnt ) );
      }
      else if ( "return-join".equals( name ) ) {
        definition.addQueryReturn( bindReturnJoin( returnElem, mappings ) );
      }
      else if ( "load-collection".equals( name ) ) {
View Full Code Here

Examples of org.hibernate.engine.ResultSetMappingDefinition.addQueryReturn()

      }
      else if ( "return".equals( name ) ) {
        definition.addQueryReturn( bindReturn( returnElem, mappings, cnt ) );
      }
      else if ( "return-join".equals( name ) ) {
        definition.addQueryReturn( bindReturnJoin( returnElem, mappings ) );
      }
      else if ( "load-collection".equals( name ) ) {
        definition.addQueryReturn( bindLoadCollection( returnElem, mappings ) );
      }
    }
View Full Code Here

Examples of org.hibernate.engine.ResultSetMappingDefinition.addQueryReturn()

      }
      else if ( "return-join".equals( name ) ) {
        definition.addQueryReturn( bindReturnJoin( returnElem, mappings ) );
      }
      else if ( "load-collection".equals( name ) ) {
        definition.addQueryReturn( bindLoadCollection( returnElem, mappings ) );
      }
    }
    return definition;
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.