Skip to content

Commit

Permalink
use forked greendao to get insertOrIgnore
Browse files Browse the repository at this point in the history
  • Loading branch information
nashira committed Dec 21, 2014
1 parent 5bfdbf1 commit 0260d8e
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 14 deletions.
11 changes: 0 additions & 11 deletions .idea/libraries/greendao_1_3_1.xml

This file was deleted.

9 changes: 9 additions & 0 deletions .idea/libraries/greendao_1_3_8_SNAPSHOT.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion app/app.iml
Original file line number Diff line number Diff line change
Expand Up @@ -89,8 +89,8 @@
<orderEntry type="library" exported="" name="support-v4-21.0.3" level="project" />
<orderEntry type="library" exported="" name="retrofit-1.7.1" level="project" />
<orderEntry type="library" exported="" name="okio-1.0.0" level="project" />
<orderEntry type="library" exported="" name="greendao-1.3.1" level="project" />
<orderEntry type="library" exported="" name="joda-time-2.5" level="project" />
<orderEntry type="library" exported="" name="greendao-1.3.8-SNAPSHOT" level="project" />
<orderEntry type="library" exported="" name="okhttp-2.0.0" level="project" />
<orderEntry type="library" exported="" name="gson-2.3" level="project" />
</component>
Expand Down
1 change: 0 additions & 1 deletion app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,6 @@ dependencies {
compile 'com.android.support:support-v4:21.0.3'
compile 'com.android.support:appcompat-v7:21.0.3'
compile 'joda-time:joda-time:2.5'
compile 'de.greenrobot:greendao:1.3.1'
compile 'com.squareup.retrofit:retrofit:1.7.1'
compile 'com.squareup.okhttp:okhttp:2.0.0'
compile 'com.squareup.okhttp:okhttp-urlconnection:2.0.0'
Expand Down
Binary file added app/libs/greendao-1.3.8-SNAPSHOT.jar
Binary file not shown.
2 changes: 1 addition & 1 deletion app/src/main/java/com/nashlincoln/blink/model/Group.java
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ public void flushAttributes() {
for (Attribute attribute : getAttributes()) {
attribute.setAttributableId(id);
attribute.setAttributableType(ATTRIBUTABLE_TYPE);
attributeDao.insertOrReplace(attribute);
attributeDao.insertOrIgnore(attribute);
}
}

Expand Down

0 comments on commit 0260d8e

Please sign in to comment.