How to use multiple primary keys

前端 未结 4 1120
时光说笑
时光说笑 2020-12-06 11:37

I created database, for my android app, witch has 16 tables. I want to use ORMlite mapping. The problem is that I didn\'t find examples where you have composite id(Multiple

4条回答
  •  暖寄归人
    2020-12-06 12:26

    You have to use the following annotation above each unique field:

    @DatabaseField (uniqueCombo = true)

    Here are the docs on uniqueCombo.

提交回复
热议问题