Skip to content

findVersionsBetween() not working with @ManyToMany? #3522

Open
@jtammen

Description

@jtammen

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions