/** * Append the property columns to the buffer. */ @Override public void appendSelect(DbSqlContext ctx, boolean subQuery) { ctx.pushJoin(prefix); ctx.pushTableAlias(prefix); if (temporalVersions) { // select sys_period lower and upper columns ctx.appendHistorySysPeriod(); } if (lazyLoadParent != null) { lazyLoadParent.addSelectExported(ctx, prefix); } if (readId) { if (!subQuery && inheritInfo != null) { ctx.appendColumn(inheritInfo.getDiscriminatorColumn()); } appendSelectId(ctx, idBinder.getBeanProperty()); } appendSelect(ctx, subQuery, properties); for (SqlTreeNode aChildren : children) { // read each child... and let them set their // values back to this localBean aChildren.appendSelect(ctx, subQuery); } ctx.popTableAlias(); ctx.popJoin(); }
/** * Append the property columns to the buffer. */ @Override public void appendSelect(DbSqlContext ctx, boolean subQuery) { ctx.pushJoin(prefix); ctx.pushTableAlias(prefix); if (temporalVersions) { // select sys_period lower and upper columns ctx.appendHistorySysPeriod(); } if (lazyLoadParent != null) { lazyLoadParent.addSelectExported(ctx, prefix); } if (readId) { if (!subQuery && inheritInfo != null) { ctx.appendColumn(inheritInfo.getDiscriminatorColumn()); } appendSelectId(ctx, idBinder.getBeanProperty()); } appendSelect(ctx, subQuery, properties); for (SqlTreeNode aChildren : children) { // read each child... and let them set their // values back to this localBean aChildren.appendSelect(ctx, subQuery); } ctx.popTableAlias(); ctx.popJoin(); }