protected RelationSource2 loadCurrentDeep(Cursor cursor, boolean lock) { RelationSource2 entity = loadCurrent(cursor, 0, lock); int offset = getAllColumns().length; ToOneTarget2 toOneTarget2 = loadCurrentOther(daoSession.getToOneTarget2Dao(), cursor, offset); entity.setToOneTarget2(toOneTarget2); 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.getToOneTarget2Dao().getAllColumns()); builder.append(" FROM RELATION_SOURCE2 T"); builder.append(" LEFT JOIN TO_ONE_TARGET2 T0 ON T.'TO_ONE_ID'=T0.'_id'"); builder.append(' '); selectDeep = builder.toString(); } return selectDeep; }