Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

findVersionsBetween() not working with @ManyToMany? #3522

Open
jtammen opened this issue Nov 26, 2024 · 0 comments
Open

findVersionsBetween() not working with @ManyToMany? #3522

jtammen opened this issue Nov 26, 2024 · 0 comments

Comments

@jtammen
Copy link

jtammen commented Nov 26, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant