opencirclesolutions-wove commented on code in PR #2412:
URL: https://github.com/apache/causeway/pull/2412#discussion_r1611573557
##########
extensions/security/audittrail/applib/src/main/java/org/apache/causeway/extensions/audittrail/applib/dom/AuditTrailEntryRepositoryAbstract.java:
##########
@@ -60,12 +63,25 @@ public Class<E> getEntityClass() {
return auditTrailEntryClass;
}
+ @Override
public AuditTrailEntry createFor(final EntityPropertyChange change) {
E entry = factoryService.detachedEntity(auditTrailEntryClass);
entry.init(change);
return repositoryService.persistAndFlush(entry);
}
+ @Override
+ public Can<AuditTrailEntry> createForBulk(Can<EntityPropertyChange>
entityPropertyChanges) {
+ Collection<AuditTrailEntry> auditTrailEntries =
repositoryService.execInBulk(() -> entityPropertyChanges.stream()
Review Comment:
Hmmm….
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]