Calendar Sync: Make greendao .update() work by adding a PK id :/

This commit is contained in:
Andreas Shimokawa
2017-04-16 21:08:49 +02:00
parent f7ca1fc76c
commit df0e77f368
2 changed files with 7 additions and 4 deletions
@@ -273,6 +273,7 @@ public class GBDaoGenerator {
private static void addCalendarSyncState(Schema schema, Entity device) {
Entity calendarSyncState = addEntity(schema, "CalendarSyncState");
calendarSyncState.addIdProperty();
Property deviceId = calendarSyncState.addLongProperty("deviceId").notNull().getProperty();
Property calendarEntryId = calendarSyncState.addLongProperty("calendarEntryId").notNull().getProperty();
Index indexUnique = new Index();