Моя модель AccountAudit
Код: Выделить всё
@Data
@NoArgsConstructor
@Entity
public class AccountAudit {
@Id
private String accountId;
private String accountName;
private Date lastUpdateDate;
}
Код: Выделить всё
List
findByAccountIdAndLastUpdateDateGreaterThanAndLastUpdateDateLessThan(String accountId, Date
fromDate, Date toDate);
Пример данных:
Код: Выделить всё
insert into account_audit (account_id, account_name, last_update_date) values ('101', 'Roger
Federer', '2024-02-22')
Подробнее здесь: https://stackoverflow.com/questions/785 ... -methods-w