|
@@ -30,7 +30,7 @@ public class CategoryDBDao extends AbstractDao<CategoryDB, Long> {
|
30
|
30
|
public final static Property Name = new Property(3, String.class, "name", false, "NAME");
|
31
|
31
|
public final static Property Type = new Property(4, int.class, "type", false, "TYPE");
|
32
|
32
|
public final static Property Image_path = new Property(5, String.class, "image_path", false, "IMAGE_PATH");
|
33
|
|
- public final static Property Account = new Property(6, long.class, "account", false, "ACCOUNT");
|
|
33
|
+ public final static Property Account = new Property(6, double.class, "account", false, "ACCOUNT");
|
34
|
34
|
public final static Property Category_id = new Property(7, int.class, "category_id", false, "CATEGORY_ID");
|
35
|
35
|
public final static Property Year = new Property(8, int.class, "year", false, "YEAR");
|
36
|
36
|
public final static Property Month = new Property(9, int.class, "month", false, "MONTH");
|
|
@@ -59,7 +59,7 @@ public class CategoryDBDao extends AbstractDao<CategoryDB, Long> {
|
59
|
59
|
"\"NAME\" TEXT," + // 3: name
|
60
|
60
|
"\"TYPE\" INTEGER NOT NULL ," + // 4: type
|
61
|
61
|
"\"IMAGE_PATH\" TEXT," + // 5: image_path
|
62
|
|
- "\"ACCOUNT\" INTEGER NOT NULL ," + // 6: account
|
|
62
|
+ "\"ACCOUNT\" REAL NOT NULL ," + // 6: account
|
63
|
63
|
"\"CATEGORY_ID\" INTEGER NOT NULL ," + // 7: category_id
|
64
|
64
|
"\"YEAR\" INTEGER NOT NULL ," + // 8: year
|
65
|
65
|
"\"MONTH\" INTEGER NOT NULL ," + // 9: month
|
|
@@ -104,7 +104,7 @@ public class CategoryDBDao extends AbstractDao<CategoryDB, Long> {
|
104
|
104
|
if (image_path != null) {
|
105
|
105
|
stmt.bindString(6, image_path);
|
106
|
106
|
}
|
107
|
|
- stmt.bindLong(7, entity.getAccount());
|
|
107
|
+ stmt.bindDouble(7, entity.getAccount());
|
108
|
108
|
stmt.bindLong(8, entity.getCategory_id());
|
109
|
109
|
stmt.bindLong(9, entity.getYear());
|
110
|
110
|
stmt.bindLong(10, entity.getMonth());
|
|
@@ -143,7 +143,7 @@ public class CategoryDBDao extends AbstractDao<CategoryDB, Long> {
|
143
|
143
|
if (image_path != null) {
|
144
|
144
|
stmt.bindString(6, image_path);
|
145
|
145
|
}
|
146
|
|
- stmt.bindLong(7, entity.getAccount());
|
|
146
|
+ stmt.bindDouble(7, entity.getAccount());
|
147
|
147
|
stmt.bindLong(8, entity.getCategory_id());
|
148
|
148
|
stmt.bindLong(9, entity.getYear());
|
149
|
149
|
stmt.bindLong(10, entity.getMonth());
|
|
@@ -167,7 +167,7 @@ public class CategoryDBDao extends AbstractDao<CategoryDB, Long> {
|
167
|
167
|
cursor.isNull(offset + 3) ? null : cursor.getString(offset + 3), // name
|
168
|
168
|
cursor.getInt(offset + 4), // type
|
169
|
169
|
cursor.isNull(offset + 5) ? null : cursor.getString(offset + 5), // image_path
|
170
|
|
- cursor.getLong(offset + 6), // account
|
|
170
|
+ cursor.getDouble(offset + 6), // account
|
171
|
171
|
cursor.getInt(offset + 7), // category_id
|
172
|
172
|
cursor.getInt(offset + 8), // year
|
173
|
173
|
cursor.getInt(offset + 9), // month
|
|
@@ -187,7 +187,7 @@ public class CategoryDBDao extends AbstractDao<CategoryDB, Long> {
|
187
|
187
|
entity.setName(cursor.isNull(offset + 3) ? null : cursor.getString(offset + 3));
|
188
|
188
|
entity.setType(cursor.getInt(offset + 4));
|
189
|
189
|
entity.setImage_path(cursor.isNull(offset + 5) ? null : cursor.getString(offset + 5));
|
190
|
|
- entity.setAccount(cursor.getLong(offset + 6));
|
|
190
|
+ entity.setAccount(cursor.getDouble(offset + 6));
|
191
|
191
|
entity.setCategory_id(cursor.getInt(offset + 7));
|
192
|
192
|
entity.setYear(cursor.getInt(offset + 8));
|
193
|
193
|
entity.setMonth(cursor.getInt(offset + 9));
|