findVersionsBetween
Return versions of a @History entity bean between the 2 timestamps.
Generally this query is expected to be a find by id or unique predicates query. It will execute the query against the history returning the versions of the bean between the start and end timestamps.
Timestamp start = ...;
Timestamp end = ...;
List<Version<Customer>> customerVersions =
new QCustomer()
.id.eq(42)
.findVersionsBetween(start, end);
for (Version<Customer> customerVersion : customerVersions) {
Customer bean = customerVersion.getBean();
Map<String, ValuePair> diff = customerVersion.getDiff();
Timestamp effectiveStart = customerVersion.getStart();
Timestamp effectiveEnd = customerVersion.getEnd();
}