lundi 7 décembre 2020

RevisionRepository return entity with different List implementation (PersistanceBag ->ListProxy)

org.springframework.data.repository.history.RevisionRepository
Entity entity = repository.findLastChangeRevision(entity.getId()).get().getEntity();

return entity with list as ListProxy.

Normal CrudRepository

repository.findById(id)

return the same entity with identical content, but list with type PersistentBag.

This difference case problem with asserting this two object in integration tests.

Any solutions?

Aucun commentaire:

Enregistrer un commentaire