1 | boolean collectionOfElements = fromElement.isCollectionOfValuesOrComponents();↵ | | |
|
2 | if ( !collectionOfElements ) {↵ | | 1 | if ( !fromElement.isFetch() ) {↵
|
3 | // Add the type to the list of returned sqlResultTypes.↵ | | 2 | // Add the type to the list of returned sqlResultTypes.↵
|
4 | fromElement.setIncludeSubclasses( true );↵ | | 3 | queryReturnTypeList.add( type );↵
|
5 | ↵ | | 4 | }↵
|
6 | fromElementsForLoad.add( fromElement );↵ | | 5 | fromElementsForLoad.add( fromElement );↵
|
7 | //sqlResultTypeList.add( type );↵ | | 6 | sqlResultTypeList.add( type );↵
|
8 | // Generate the select expression.↵ | | 7 | // Generate the select expression.↵
|
9 | String text = fromElement.renderIdentifierSelect( size, k );↵ | | 8 | String text = fromElement.renderIdentifierSelect( size, k );↵
|
10 | SelectExpressionImpl generatedExpr = ( SelectExpressionImpl ) appender.append( SqlTokenTypes.SELECT_EXPR, text, false );↵ | | 9 | SelectExpressionImpl generatedExpr = ( SelectExpressionImpl ) appender.append( SqlTokenTypes.SELECT_EXPR, text, false );↵
|
11 | if ( generatedExpr != null ) {↵ | | 10 | if ( generatedExpr != null ) {↵
|
12 | generatedExpr.setFromElement( fromElement );↵ | | 11 | generatedExpr.setFromElement( fromElement );↵
|
13 | | | 12 | }
|