You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cayenne.apache.org by aa...@apache.org on 2026/08/17 18:09:18 UTC

(cayenne) 02/02: CAY-2981 Remove DataNode from XML mapping

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

asf-gitbox-commits pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/cayenne.git

commit 22ede0e75e7645e33187db504e2a5f792cd5a738
Author: Andrus Adamchik <an...@objectstyle.com>
AuthorDate: Mon Aug 17 14:09:09 2026 -0400

    CAY-2981 Remove DataNode from XML mapping
    
    Derby test regression
---
 .../src/test/java/org/apache/cayenne/dba/ConcurrentPkGeneratorIT.java   | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/cayenne/src/test/java/org/apache/cayenne/dba/ConcurrentPkGeneratorIT.java b/cayenne/src/test/java/org/apache/cayenne/dba/ConcurrentPkGeneratorIT.java
index bd48c9227..a23f04a91 100644
--- a/cayenne/src/test/java/org/apache/cayenne/dba/ConcurrentPkGeneratorIT.java
+++ b/cayenne/src/test/java/org/apache/cayenne/dba/ConcurrentPkGeneratorIT.java
@@ -59,7 +59,7 @@ public class ConcurrentPkGeneratorIT {
 		testDbAdapter = env.testDbAdapter();
 		//use to fix random test failures on derby db
 		if(testDbAdapter instanceof DerbyTestDbAdapter) {
-			try(Connection connection = runtime.getDataDomain().getDataNode("qualified").getDataSource().getConnection()){
+			try(Connection connection = env.dataNode().getDataSource().getConnection()){
 				CallableStatement cs =
 						connection.prepareCall("CALL SYSCS_UTIL.SYSCS_SET_DATABASE_PROPERTY(?, ?)");
 				cs.setString(1, "derby.language.sequence.preallocator");