@ColumnInfo
@PrimaryKey(autoGenerate = true)
long id;
- @ColumnInfo
- private long account_id;
+ @ColumnInfo(name = "account_id")
+ private long accountId;
@NonNull
@ColumnInfo(defaultValue = "")
private String currency = "";
@ColumnInfo
private float value;
@ColumnInfo(defaultValue = "0")
- private int generation = 0;
+ private long generation = 0;
public long getId() {
return id;
}
public void setId(long id) {
this.id = id;
}
- public long getAccount_id() {
- return account_id;
+ public long getAccountId() {
+ return accountId;
}
- public void setAccount_id(long account_id) {
- this.account_id = account_id;
+ public void setAccountId(long accountId) {
+ this.accountId = accountId;
}
@NonNull
public String getCurrency() {
public void setValue(float value) {
this.value = value;
}
- public int getGeneration() {
+ public long getGeneration() {
return generation;
}
- public void setGeneration(int generation) {
+ public void setGeneration(long generation) {
this.generation = generation;
}
}