protected Order loadCurrentDeep(Cursor cursor, boolean lock) { Order entity = loadCurrent(cursor, 0, lock); int offset = getAllColumns().length; Customer customer = loadCurrentOther(daoSession.getCustomerDao(), cursor, offset); if (customer != null) { entity.setCustomer(customer); } 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.getCustomerDao().getAllColumns()); builder.append(" FROM ORDERS T"); builder.append(" LEFT JOIN CUSTOMER T0 ON T.\"CUSTOMER_ID\"=T0.\"_id\""); builder.append(' '); selectDeep = builder.toString(); } return selectDeep; }