Hibernate envers forRevisionsOfEntityWithChanges only returning last modified column

南笙酒味 提交于 2021-01-07 06:57:47

问题


    AuditReader reader = AuditReaderFactory.get(entityManager);
    AuditQuery query = reader.createQuery().forRevisionsOfEntityWithChanges(Customer.class, false);

    List<Object[]> revisionsCustomer = query
            .add(AuditEntity.id().eq(3014l))
            .addOrder(AuditEntity.revisionProperty("timestamp").desc())
            .getResultList();

I have edited the instance with id 3014 4 times. Each time editing a different column.

But in revisionsCustomer it shows that every time I have changed the same column (the one I have edited the last time).

Is this a bug, or I am doing something wrong?

Envers version: 5.3.20

来源:https://stackoverflow.com/questions/65333022/hibernate-envers-forrevisionsofentitywithchanges-only-returning-last-modified-co

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!