@ColumnInfo
private String comment;
@ColumnInfo
- private int generation = 0;
+ private long generation = 0;
public long getLedgerId() {
return ledgerId;
}
public void setComment(String comment) {
this.comment = comment;
}
- public int getGeneration() {
+ public long getGeneration() {
return generation;
}
- public void setGeneration(int generation) {
+ public void setGeneration(long generation) {
this.generation = generation;
}
+ public void copyDataFrom(Transaction o) {
+ // id = o.id;
+ ledgerId = o.ledgerId;
+ profileId = o.profileId;
+ dataHash = o.dataHash;
+ year = o.year;
+ month = o.month;
+ day = o.day;
+ description = o.description;
+ comment = o.comment;
+ generation = o.generation;
+ }
}