TimotheeJeannin / ProviGen

Easily make a ContentProvider from an annotated ContractClass.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Support for composite primary keys

iriina opened this issue · comments

Hi,

Are there any plans for adding support for composite primary keys (or is this possible with the current library)? Maybe something like a new annotation in the Contract that defines the fields that will make the primary key (or an annotation per each field/column that will be part of the composite key). And then modify the code for createTable in ProviGenOpenHelper to take this fields into account (if the annotation is defined) when setting the primary key. Would this work or it requires more modifications to the code?

Thanks,
Irina