@Documented
@Retention(value=RUNTIME)
@Target(value=FIELD)
public @interface SQLitePrimaryKey
Because SQLite prefers to have auto-incremented integer keys in all of its
tables, the definition of "primary key" here is a bit loose. Rather than
trying to declare this column as a primary key, SQLiteHouse
will
actually create this table as merely UNIQUE
but then treat
the column as a primary key for all operations that would want one, including
key-based searches, references across tables, etc. Meanwhile, it will
silently also manage a _id
field as the actual primary
key that is reported to SQLite.
See SQLiteHouse
for details of how this fits into the overall framework.