@@ -11,15 +11,8 @@ package com.mifos.room.entities.client
11
11
12
12
import com.mifos.core.model.utils.Parcelable
13
13
import com.mifos.core.model.utils.Parcelize
14
- import com.mifos.room.utils.ColumnInfo
15
14
import com.mifos.room.utils.Entity
16
- import com.mifos.room.utils.ForeignKey
17
- import com.mifos.room.utils.ForeignKeyAction
18
- import com.mifos.room.utils.INHERIT_FIELD_NAME
19
15
import com.mifos.room.utils.PrimaryKey
20
- import com.mifos.room.utils.UNDEFINED
21
- import com.mifos.room.utils.UNSPECIFIED
22
- import com.mifos.room.utils.VALUE_UNSPECIFIED
23
16
import kotlinx.serialization.Serializable
24
17
25
18
/* *
@@ -33,44 +26,10 @@ import kotlinx.serialization.Serializable
33
26
inheritSuperIndices = false ,
34
27
primaryKeys = [],
35
28
ignoredColumns = [],
36
- foreignKeys = [
37
- ForeignKey (
38
- entity = ChargeTimeTypeEntity ::class ,
39
- parentColumns = [" id" ],
40
- childColumns = [" chargeTimeType" ],
41
- onDelete = ForeignKeyAction .CASCADE ,
42
- onUpdate = ForeignKeyAction .NO_ACTION ,
43
- deferred = false ,
44
- ),
45
- ForeignKey (
46
- entity = ClientDateEntity ::class ,
47
- parentColumns = [" clientId" ],
48
- childColumns = [" chargeDueDate" ],
49
- onDelete = ForeignKeyAction .CASCADE ,
50
- onUpdate = ForeignKeyAction .NO_ACTION ,
51
- deferred = false ,
52
- ),
53
- ForeignKey (
54
- entity = ChargeCalculationTypeEntity ::class ,
55
- parentColumns = [" id" ],
56
- childColumns = [" id" ],
57
- onDelete = ForeignKeyAction .CASCADE ,
58
- onUpdate = ForeignKeyAction .NO_ACTION ,
59
- deferred = false ,
60
- ),
61
- ForeignKey (
62
- entity = ClientChargeCurrencyEntity ::class ,
63
- parentColumns = [" id" ],
64
- childColumns = [" id" ],
65
- onDelete = ForeignKeyAction .CASCADE ,
66
- onUpdate = ForeignKeyAction .NO_ACTION ,
67
- deferred = false ,
68
- ),
69
- ],
29
+ foreignKeys = [],
70
30
)
71
31
data class ChargesEntity (
72
32
@PrimaryKey(autoGenerate = true )
73
- @ColumnInfo(index = true , name = INHERIT_FIELD_NAME , typeAffinity = UNDEFINED , collate = UNSPECIFIED , defaultValue = VALUE_UNSPECIFIED )
74
33
val id : Int = 0 ,
75
34
76
35
val clientId : Int? = null ,
@@ -81,18 +40,14 @@ data class ChargesEntity(
81
40
82
41
val name : String? = null ,
83
42
84
- @ColumnInfo(index = true , name = INHERIT_FIELD_NAME , typeAffinity = UNDEFINED , collate = UNSPECIFIED , defaultValue = VALUE_UNSPECIFIED )
85
43
val chargeTimeType : ChargeTimeTypeEntity ? = null ,
86
44
87
- @ColumnInfo(index = true , name = INHERIT_FIELD_NAME , typeAffinity = UNDEFINED , collate = UNSPECIFIED , defaultValue = VALUE_UNSPECIFIED )
88
45
val chargeDueDate : ClientDateEntity ? = null ,
89
46
90
47
val dueDate : List <Int >? = null ,
91
48
92
- @ColumnInfo(index = true , name = INHERIT_FIELD_NAME , typeAffinity = UNDEFINED , collate = UNSPECIFIED , defaultValue = VALUE_UNSPECIFIED )
93
49
val chargeCalculationType : ChargeCalculationTypeEntity ? = null ,
94
50
95
- @ColumnInfo(index = true , name = INHERIT_FIELD_NAME , typeAffinity = UNDEFINED , collate = UNSPECIFIED , defaultValue = VALUE_UNSPECIFIED )
96
51
val currency : ClientChargeCurrencyEntity ? = null ,
97
52
98
53
val amount : Double? = null ,
0 commit comments