]> git.ktnx.net Git - mobile-ledger.git/blobdiff - app/src/main/java/net/ktnx/mobileledger/db/Currency.java
make Room ignore the no-argument Currency constructor
[mobile-ledger.git] / app / src / main / java / net / ktnx / mobileledger / db / Currency.java
index a9f799f867f87d10af30213cc30fc01b37f7e3c6..855244396b3e9ca641c7d6ae3552c906305c39a1 100644 (file)
@@ -20,6 +20,7 @@ package net.ktnx.mobileledger.db;
 import androidx.annotation.NonNull;
 import androidx.room.ColumnInfo;
 import androidx.room.Entity;
+import androidx.room.Ignore;
 import androidx.room.Index;
 import androidx.room.PrimaryKey;
 
@@ -35,6 +36,7 @@ public class Currency {
     @NonNull
     @ColumnInfo(name = "has_gap")
     private Boolean hasGap;
+    @Ignore
     public Currency() {
         id = 0;
         name = "";