如何获得仅包含Category
模型的“名称”列的数组?
我可以使用我的所有类别
List<Category> categoryList = new Select()
.from(Category.class)
.execute();
然后创建另一个名称为 的数组Category
,但我想有一种方法可以直接获取它,但我找不到方法。
如何获得仅包含Category
模型的“名称”列的数组?
我可以使用我的所有类别
List<Category> categoryList = new Select()
.from(Category.class)
.execute();
然后创建另一个名称为 的数组Category
,但我想有一种方法可以直接获取它,但我找不到方法。