You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@causeway.apache.org by ah...@apache.org on 2025/11/13 19:04:12 UTC
(causeway) branch main updated: CAUSEWAY-3943: adds more logging presets (not working though)
This is an automated email from the ASF dual-hosted git repository.
ahuber pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/causeway.git
The following commit(s) were added to refs/heads/main by this push:
new c84596fb99a CAUSEWAY-3943: adds more logging presets (not working though)
c84596fb99a is described below
commit c84596fb99a694abe8dcf0ba370e60b3613c69fc
Author: andi-huber <ah...@apache.org>
AuthorDate: Thu Nov 13 20:04:05 2025 +0100
CAUSEWAY-3943: adds more logging presets (not working though)
Task-Url: https://issues.apache.org/jira/browse/CAUSEWAY-3943
---
.../causeway/core/config/presets/CausewayPresets.java | 2 ++
.../config/presets/DebugJpaEntityEvents.properties | 19 +++++++++++++++++++
.../metamodel/tabular/internal/DataTableInternal.java | 7 +++++++
3 files changed, 28 insertions(+)
diff --git a/core/config/src/main/java/org/apache/causeway/core/config/presets/CausewayPresets.java b/core/config/src/main/java/org/apache/causeway/core/config/presets/CausewayPresets.java
index b6cfc73569f..3b00c1d38ae 100644
--- a/core/config/src/main/java/org/apache/causeway/core/config/presets/CausewayPresets.java
+++ b/core/config/src/main/java/org/apache/causeway/core/config/presets/CausewayPresets.java
@@ -44,6 +44,8 @@ public final class CausewayPresets {
public static final String SilenceMetaModel = "classpath:/org/apache/causeway/core/config/presets/SilenceMetaModel.properties";
public static final String DebugCausewayInteraction = "classpath:/org/apache/causeway/core/config/presets/DebugCausewayInteraction.properties";
+
+ public static final String DebugJpaEntityEvents = "classpath:/org/apache/causeway/core/config/presets/DebugJpaEntityEvents.properties";
public static final String SilenceWicket = "classpath:/org/apache/causeway/core/config/presets/SilenceWicket.properties";
diff --git a/core/config/src/main/java/org/apache/causeway/core/config/presets/DebugJpaEntityEvents.properties b/core/config/src/main/java/org/apache/causeway/core/config/presets/DebugJpaEntityEvents.properties
new file mode 100644
index 00000000000..a3cdbde2f81
--- /dev/null
+++ b/core/config/src/main/java/org/apache/causeway/core/config/presets/DebugJpaEntityEvents.properties
@@ -0,0 +1,19 @@
+#
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements. See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership. The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied. See the License for the
+# specific language governing permissions and limitations
+# under the License.
+
+logging.level.org.apache.causeway.persistence.jpa.applib.integration.CausewayEntityListener = DEBUG
diff --git a/core/metamodel/src/main/java/org/apache/causeway/core/metamodel/tabular/internal/DataTableInternal.java b/core/metamodel/src/main/java/org/apache/causeway/core/metamodel/tabular/internal/DataTableInternal.java
index 475ca0377dc..ac4e2564da0 100644
--- a/core/metamodel/src/main/java/org/apache/causeway/core/metamodel/tabular/internal/DataTableInternal.java
+++ b/core/metamodel/src/main/java/org/apache/causeway/core/metamodel/tabular/internal/DataTableInternal.java
@@ -484,6 +484,13 @@ public void setupBindings(final DataTableInteractive tableInteractive) {
this.selectedRowIndexes = tableInteractive.getSelectedRowIndexes();
});
}
+
+ @Override
+ public String toString() {
+ return "Memento[featureId=%s,dataTable.rowCount=%d]".formatted(
+ featureId.memberLogicalName(),
+ dataTable.dataRows().size());
+ }
}