@Entity(tableName = "pattern_accounts",
indices = {@Index(name = "un_pattern_accounts", unique = true, value = "id"),
- @Index(name = "fk_pattern_accounts_pattern", unique = false,
- value = "pattern_id"),
- @Index(name = "fk_pattern_accounts_currency", unique = false, value = "currency")
+ @Index(name = "fk_pattern_accounts_pattern", value = "pattern_id"),
+ @Index(name = "fk_pattern_accounts_currency", value = "currency")
}, foreignKeys = {@ForeignKey(childColumns = "pattern_id", parentColumns = "id",
entity = PatternHeader.class),
@ForeignKey(childColumns = "currency", parentColumns = "id",
private String accountComment;
@ColumnInfo(name = "comment_match_group")
private Integer accountCommentMatchGroup;
+ @ColumnInfo(name = "negate_amount")
+ private Boolean negateAmount;
public PatternAccount(@NotNull Long id, @NonNull Long patternId, @NonNull Long position) {
this.id = id;
this.patternId = patternId;
public void setId(Long id) {
this.id = id;
}
+ public Boolean getNegateAmount() {
+ return negateAmount;
+ }
+ public void setNegateAmount(Boolean negateAmount) {
+ this.negateAmount = negateAmount;
+ }
public @NotNull Long getPatternId() {
return patternId;
}