As activeandroid library suggests, when declaring a model class object to use annotation unique and index annotation parameters for unique constraint and indexing for a column respectively here,
/**activeandroid imports**/
import com.activeandroid.annotation.Column;
import com.activeandroid.Model;
....
@Table(name="Product")
public class Product extends Model{
...
/**issue: index is not a valid parameter for Column annotation**/
@Column(name = "Category", index = true)
public String category;
...
}
I tried to implement this but the annotation parameters index or unique are not available in the library. I am using version 3.0 jar Tried version3.1 beta also,same issue there. While 3.1 is the latest jar available, am I missing something? Please suggest a solution to create indexes when using activeandroid library. Thanks