turbomanage / storm-gen

Simple ORM for Android SQLite
Apache License 2.0
83 stars 15 forks source link

Add support for non int Primary Key #34

Open brh opened 10 years ago

brh commented 10 years ago

For our app we need to have a String/Text as the primary key. Can this be considered.

turbomanage commented 10 years ago

Yes, I think so, but an additional Long @Id field will still be required since CursorAdapter expects an _id field. I could add a @PrimaryKey annotation.