@Override
 protected Long updateKeyAfterInsert(RelationSource2 entity, long rowId) {
   entity.setId(rowId);
   return rowId;
 }
 /** @inheritdoc */
 @Override
 public void readEntity(Cursor cursor, RelationSource2 entity, int offset) {
   entity.setId(cursor.isNull(offset + 0) ? null : cursor.getLong(offset + 0));
   entity.setToOneId(cursor.isNull(offset + 1) ? null : cursor.getLong(offset + 1));
 }