entity.setFromId(cursor.getInt(offset + 1));
entity.setToId(cursor.getInt(offset + 2));
entity.setFromName(cursor.isNull(offset + 3) ? null : cursor.getString(offset + 3));
entity.setFromAvatar(cursor.isNull(offset + 4) ? null : cursor.getString(offset + 4));
entity.setContent(cursor.isNull(offset + 5) ? null : cursor.getString(offset + 5));
<BUG>entity.setContentType(cursor.isNull(offset + 6) ? null : cursor.getString(offset + 6));
entity.setTime(cursor.isNull(offset + 7) ? null : cursor.getString(offset + 7));

entity.setIsRead(cursor.getShort(offset + 8) != 0);
</BUG>
}

entity.setFromId(cursor.getInt(offset + 1));
entity.setToId(cursor.getInt(offset + 2));
entity.setFromName(cursor.isNull(offset + 3) ? null : cursor.getString(offset + 3));
entity.setFromAvatar(cursor.isNull(offset + 4) ? null : cursor.getString(offset + 4));
entity.setContent(cursor.isNull(offset + 5) ? null : cursor.getString(offset + 5));
entity.setContentType(cursor.isNull(offset + 6) ? null : cursor.getString(offset + 6));
entity.setAudioLength(cursor.isNull(offset + 7) ? null : cursor.getString(offset + 7));
entity.setTime(cursor.isNull(offset + 8) ? null : cursor.getString(offset + 8));
entity.setIsRead(cursor.getShort(offset + 9) != 0);
}
