ebean icon indicating copy to clipboard operation
ebean copied to clipboard

findVersionsBetween() not working with @ManyToMany?

Open jtammen opened this issue 1 year ago • 0 comments

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.

jtammen avatar Nov 26 '24 16:11 jtammen