Skip to content

Commit

Permalink
HHH-17652 Add TYPE_KEY when persisting new audit entity
Browse files Browse the repository at this point in the history
  • Loading branch information
mbladel committed Jan 7, 2025
1 parent afd938f commit 5d4cdf2
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,8 @@ protected void fillDataWithId(Map<String, Object> data, Object revision) {

data.put( configuration.getRevisionTypePropertyName(), revisionType );
data.put( configuration.getOriginalIdPropertyName(), originalId );
// The $type$ property holds the name of the (versions) entity
data.put( "$type$", configuration.getAuditEntityName( entityName ) );
}

@Override
Expand Down

0 comments on commit 5d4cdf2

Please sign in to comment.