protected CapitalMarketsRevenue loadCurrentDeep(Cursor cursor, boolean lock) {
    CapitalMarketsRevenue entity = loadCurrent(cursor, 0, lock);
    int offset = getAllColumns().length;

    APCachedRequest aPCachedRequest =
        loadCurrentOther(daoSession.getAPCachedRequestDao(), cursor, offset);
    entity.setAPCachedRequest(aPCachedRequest);

    return entity;
  }
 protected String getSelectDeep() {
   if (selectDeep == null) {
     StringBuilder builder = new StringBuilder("SELECT ");
     SqlUtils.appendColumns(builder, "T", getAllColumns());
     builder.append(',');
     SqlUtils.appendColumns(builder, "T0", daoSession.getAPCachedRequestDao().getAllColumns());
     builder.append(" FROM CAPITALMARKETSREVENUES T");
     builder.append(" LEFT JOIN APCACHED_REQUEST T0 ON T.'AP_CACHED_REQUEST_ID'=T0.'_id'");
     builder.append(' ');
     selectDeep = builder.toString();
   }
   return selectDeep;
 }