therajanmaurya commented on a change in pull request #10: feat: Sync feature 
for customer and customer details
URL: https://github.com/apache/fineract-cn-mobile/pull/10#discussion_r203730525
 
 

 ##########
 File path: 
app/src/main/java/org/apache/fineract/data/models/customer/Address.kt
 ##########
 @@ -2,14 +2,22 @@ package org.apache.fineract.data.models.customer
 
 import android.os.Parcelable
 import com.google.gson.annotations.SerializedName
+import com.raizlabs.android.dbflow.annotation.ConflictAction
+import com.raizlabs.android.dbflow.annotation.PrimaryKey
+import com.raizlabs.android.dbflow.annotation.Table
+import com.raizlabs.android.dbflow.structure.BaseModel
 import kotlinx.android.parcel.Parcelize
+import org.apache.fineract.data.local.database.AppDatabase
 
 @Parcelize
+@Table(name = "Address", database = AppDatabase::class, allFields = true, 
insertConflict =
+ConflictAction.REPLACE)
 data class Address(
     @SerializedName("street") var street: String? = null,
     @SerializedName("city") var city: String? = null,
+    @PrimaryKey
 
 Review comment:
   You can't make `region` PrimaryKey because more than one customer live in 
same region.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to