Search in sources :

Example 1 with CustomDateRevEntity

use of org.hibernate.envers.test.entities.reventity.CustomDateRevEntity in project hibernate-orm by hibernate.

the class ValidityAuditStrategyRevEndTestCustomRevEnt method verifyRevEndTimeStamps.

private void verifyRevEndTimeStamps(String debugInfo, List<Map<String, Object>> revisionEntities) {
    for (Map<String, Object> revisionEntity : revisionEntities) {
        Date revendTimestamp = (Date) revisionEntity.get(revendTimestampColumName);
        CustomDateRevEntity revEnd = (CustomDateRevEntity) revisionEntity.get("REVEND");
        if (revendTimestamp == null) {
            assert revEnd == null;
        } else {
            assert revendTimestamp.getTime() == revEnd.getDateTimestamp().getTime();
        }
    }
}
Also used : Date(java.util.Date) CustomDateRevEntity(org.hibernate.envers.test.entities.reventity.CustomDateRevEntity)

Aggregations

Date (java.util.Date)1 CustomDateRevEntity (org.hibernate.envers.test.entities.reventity.CustomDateRevEntity)1