This is an automated email from the ASF dual-hosted git repository.

danhaywood pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/causeway.git


The following commit(s) were added to refs/heads/master by this push:
     new 18ba87679e CAUSEWAY-3390: updates migration notes for this feature
18ba87679e is described below

commit 18ba87679ec489429d47faf2c605afdf08c6b1e8
Author: danhaywood <[email protected]>
AuthorDate: Sat Jan 6 10:29:55 2024 +0000

    CAUSEWAY-3390: updates migration notes for this feature
---
 .../ROOT/pages/2024/2.0.0-RC5/mignotes.adoc        | 30 ++++++++++++++++++++++
 .../applib/dom/SessionLogEntryRepository.java      |  6 -----
 2 files changed, 30 insertions(+), 6 deletions(-)

diff --git 
a/antora/components/relnotes/modules/ROOT/pages/2024/2.0.0-RC5/mignotes.adoc 
b/antora/components/relnotes/modules/ROOT/pages/2024/2.0.0-RC5/mignotes.adoc
index 2ccbab4208..ab856cb7e5 100644
--- a/antora/components/relnotes/modules/ROOT/pages/2024/2.0.0-RC5/mignotes.adoc
+++ b/antora/components/relnotes/modules/ROOT/pages/2024/2.0.0-RC5/mignotes.adoc
@@ -5,3 +5,33 @@
 
 This page will be added to as development progresses.
 
+== AuditTrailEntryRepository and others have simplified the API.
+
+
+
+In this release the `AuditTrailEntryRepository` and similar is no longer 
parameterized by the entity type, and is also an interface.
+
+So, instead of:
+
+[source,java]
+----
+@Inject AuditTrailEntryRepository<? extends AuditTrailEntry> 
auditTrailEntryRepository;
+----
+
+it should now be just:
+
+[source,java]
+----
+@Inject AuditTrailEntryRepository auditTrailEntryRepository;
+----
+
+This applies to:
+
+* 
xref:refguide:extensions:index/audittrail/applib/dom/AuditTrailEntryRepository.adoc[]
+* 
xref:refguide:extensions:index/commandlog/applib/dom/CommandLogEntryRepository.adoc[]
+* 
xref:refguide:extensions:index/executionlog/applib/dom/ExecutionLogEntryRepository.adoc[]
+* 
xref:refguide:extensions:index/executionoutbox/applib/dom/ExecutionOutboxEntryRepository.adoc[]
+* 
xref:refguide:extensions:index/sessionlog/applib/dom/SessionLogEntryRepository.adoc[]
+
+For more details, see 
link:https://issues.apache.org/jira/browse/CAUSEWAY-3390[CAUSEWAY-3390].
+
diff --git 
a/extensions/security/sessionlog/applib/src/main/java/org/apache/causeway/extensions/sessionlog/applib/dom/SessionLogEntryRepository.java
 
b/extensions/security/sessionlog/applib/src/main/java/org/apache/causeway/extensions/sessionlog/applib/dom/SessionLogEntryRepository.java
index d107641028..8d66565dd9 100644
--- 
a/extensions/security/sessionlog/applib/src/main/java/org/apache/causeway/extensions/sessionlog/applib/dom/SessionLogEntryRepository.java
+++ 
b/extensions/security/sessionlog/applib/src/main/java/org/apache/causeway/extensions/sessionlog/applib/dom/SessionLogEntryRepository.java
@@ -90,12 +90,6 @@ public interface SessionLogEntryRepository {
 
     List<SessionLogEntry> findRecentByUsername(final String username);
 
-    private static Timestamp toTimestampStartOfDayWithOffset(final LocalDate 
dt, final int daysOffset) {
-        return dt != null
-                ? Timestamp.valueOf(dt.atStartOfDay().plusDays(daysOffset))
-                : null;
-    }
-
 
     /**
      * for testing purposes only

Reply via email to