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

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


The following commit(s) were added to refs/heads/master by this push:
     new c2d89b4c7 CAY-2855 Vertical Inheritance: Fix Disjoint By Id Prefetch 
On Sub-Entity  - fix test
c2d89b4c7 is described below

commit c2d89b4c74bc6978557a13b7444e40bc2ae0ee3b
Author: Nikita Timofeev <stari...@gmail.com>
AuthorDate: Mon Jun 10 17:02:52 2024 +0400

    CAY-2855 Vertical Inheritance: Fix Disjoint By Id Prefetch On Sub-Entity
     - fix test
---
 .../apache/cayenne/access/VerticalInheritanceIT.java   | 18 ++++++++++++++++++
 1 file changed, 18 insertions(+)

diff --git 
a/cayenne/src/test/java/org/apache/cayenne/access/VerticalInheritanceIT.java 
b/cayenne/src/test/java/org/apache/cayenne/access/VerticalInheritanceIT.java
index 6257e6bdb..74f37a439 100644
--- a/cayenne/src/test/java/org/apache/cayenne/access/VerticalInheritanceIT.java
+++ b/cayenne/src/test/java/org/apache/cayenne/access/VerticalInheritanceIT.java
@@ -981,6 +981,12 @@ public class VerticalInheritanceIT extends RuntimeCase {
                assertEquals("Impl 1", impl.getName());
                // Ensure that subclass attributes were prefetched correctly
                assertEquals("attr1", impl.getAttr1());
+
+               impl.setOther1(null);
+               impl.setOther2(null);
+               impl.setOther3(null);
+               context.commitChanges();
+               ivOtherTable.deleteAll();
        }
 
        /**
@@ -1012,6 +1018,12 @@ public class VerticalInheritanceIT extends RuntimeCase {
                assertEquals("Impl 1", impl.getName());
                // Ensure that subclass attributes were prefetched correctly
                assertEquals("attr1", impl.getAttr1());
+
+               impl.setOther1(null);
+               impl.setOther2(null);
+               impl.setOther3(null);
+               context.commitChanges();
+               ivOtherTable.deleteAll();
        }
 
        /**
@@ -1043,6 +1055,12 @@ public class VerticalInheritanceIT extends RuntimeCase {
                assertEquals("Impl 1", impl.getName());
                // Ensure that subclass attributes were prefetched correctly
                assertEquals("attr1", impl.getAttr1());
+
+               impl.setOther1(null);
+               impl.setOther2(null);
+               impl.setOther3(null);
+               context.commitChanges();
+               ivOtherTable.deleteAll();
        }
 
        /**

Reply via email to