ebean
ebean copied to clipboard
findVersionsBetween() not working with @ManyToMany?
Expected behavior
I want to be able to find all versions of an entity which has a @ManyToMany relationship in order to show this in an application to the end user. The diff of the versions should include the changes to this relationship.
Actual behavior
The Versions returned to not include changes to the @ManyToMany property. It seems that this only works with asOf()?!
Steps to reproduce
var start = Timestamp.valueOf(LocalDateTime.of(1900, 1, 1, 0, 0));
var end = Timestamp.valueOf(LocalDateTime.now());
var versions = DB
.find(entityClass)
.setId(entityId)
.findVersionsBetween(start, end);
I am using Ebean version 15.1.0 included in https://github.com/playframework/play-ebean version 8.3.0.