SQL-Lite 的橱柜,用于在一列上设置唯一字段

Cupboard for SQL-Lite to set unique field on one column

我正在为 android 项目使用 Cupboard。该项目非常简单,但后来我需要在 class.

中将一些字段设置为唯一列

例如:

class book {
Long _id;
String name; // this name should be unique 
String auther;
}

我不知道该怎么做。

问题最近已由 Cupboard 解决: https://bitbucket.org/littlerobots/cupboard/issues/8/flexible-way-to-control-how-entities-are