Two column unique constraint ActiveAndroid
问题 How can I add two column unique constraint in ActiveAndroid? I tried to add 2.sql and increase DB version, but it doesnt seem to be updated correctly (probably because I reinstall the app?). Anyway, is there are way to add some annotation on which I can apply two column unique constraint in ActiveAndroid ? <meta-data android:name="AA_DB_NAME" android:value="Diggecard.db" /> <meta-data android:name="AA_DB_VERSION" android:value="2" /> 回答1: Use the uniqueGroups property in the @Column