androidcomposite-primary-keysugarorm

How to implement composite keys using Sugar ORM


Does anyone know how to work with composite keys in Sugar ORM?

I have some tables that have composite keys, with 3 or more columns.

Is there any @annotation for this?


Solution

  • Unfortunately, in my research this feature is not implemented in SugarORM. I gave up on using SugarORM and started using SQLite natively on Android. It was much faster to implement and much more flexible.