This repository has been archived by the owner on Feb 16, 2020. It is now read-only.
RealmAnnotations + realmQuery.copyToRealmOrUpdate
Pre-release
Pre-release
This is a new class created to keep a hold of annotations from your realmModel|realmObject classes. I came with this solution as I cannot use reflection and figure out annotations of retention class types. How this is implemented can be found on the demo application.
Because now I can track @PrimaryKey, then I can go ahead and also update realmModels. This test can be found in the demo in class QueryTests.java, at method shouldUpdate()