@Override protected DynamicFormEntryTypeEntity cursorToEntity(Cursor cursor) { DynamicFormEntryTypeEntity entity = new DynamicFormEntryTypeEntity(); entity.setId(cursor.getLong(0)); entity.setDynamicFormEntryTypeCod(cursor.getLong(1)); entity.setName(cursor.getString(2)); entity.setDescription(cursor.getString(3)); entity.setPersistible(cursor.getInt(4) == 1 ? true : false); return entity; }