Package org.hibernate.engine

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


          type = mappings.getTypeResolver().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


          }
        }
        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

      }
      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

      }
      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

      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

          );
      definition.addQueryReturn( result );
    }

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

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

          "alias" + entityAliasIndex++,
          entity.entityClass().getName(),
          propertyResults,
          LockMode.READ
      );
      definition.addQueryReturn( result );
    }

    for ( ColumnResult column : ann.columns() ) {
      definition.addQueryReturn(
          new NativeSQLQueryScalarReturn(
View Full Code Here

      );
      definition.addQueryReturn( result );
    }

    for ( ColumnResult column : ann.columns() ) {
      definition.addQueryReturn(
          new NativeSQLQueryScalarReturn(
              mappings.getObjectNameNormalizer().normalizeIdentifierQuoting(
                  column.name()
              ),
              column.type() != null ? mappings.getTypeResolver().heuristicType( column.type().getName() ) : null
View Full Code Here

                mappings.getObjectNameNormalizer().normalizeIdentifierQuoting( columnResult.name() ),
                columnResult.type() != null ? mappings.getTypeResolver().heuristicType( columnResult.type().getName() ) : null
            )
        );
      }
      definition.addQueryReturn(
          new NativeSQLQueryConstructorReturn( constructorResult.targetClass(), columnReturns )
      );
    }

    if ( isDefault ) {
View Full Code Here

          "alias" + entityAliasIndex++,
          entity.entityClass().getName(),
          propertyResults,
          LockMode.READ
      );
      definition.addQueryReturn( result );
    }

    for ( ColumnResult column : ann.columns() ) {
      definition.addQueryReturn(
          new NativeSQLQueryScalarReturn(
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.