From dbb94d80664e54ef398b8772ca3715bc6d0b3d8c Mon Sep 17 00:00:00 2001 From: Gail Badner Date: Fri, 9 Aug 2019 14:56:18 -0700 Subject: [PATCH] HHH-13555 : FetchGraphTest, MergeProxyTest and ProxyDeletionTest fail due to ConstraintViolationException --- .../test/bytecode/enhancement/lazy/proxy/FetchGraphTest.java | 1 + .../test/bytecode/enhancement/lazy/proxy/MergeProxyTest.java | 1 + .../test/bytecode/enhancement/lazy/proxy/ProxyDeletionTest.java | 1 + 3 files changed, 3 insertions(+) diff --git a/hibernate-core/src/test/java/org/hibernate/test/bytecode/enhancement/lazy/proxy/FetchGraphTest.java b/hibernate-core/src/test/java/org/hibernate/test/bytecode/enhancement/lazy/proxy/FetchGraphTest.java index d6d7326a3a..10ec469f9e 100644 --- a/hibernate-core/src/test/java/org/hibernate/test/bytecode/enhancement/lazy/proxy/FetchGraphTest.java +++ b/hibernate-core/src/test/java/org/hibernate/test/bytecode/enhancement/lazy/proxy/FetchGraphTest.java @@ -615,6 +615,7 @@ public class FetchGraphTest extends BaseNonConfigCoreFunctionalTestCase { } else { final WebApplication webApplication = new WebApplication( i, "http://" + i + ".com" ); + webApplication.setName( "name #" + i ); activity.setWebApplication( webApplication ); webApplication.getActivities().add( activity ); session.save( webApplication ); diff --git a/hibernate-core/src/test/java/org/hibernate/test/bytecode/enhancement/lazy/proxy/MergeProxyTest.java b/hibernate-core/src/test/java/org/hibernate/test/bytecode/enhancement/lazy/proxy/MergeProxyTest.java index c68b8c7a68..7fa72565ba 100644 --- a/hibernate-core/src/test/java/org/hibernate/test/bytecode/enhancement/lazy/proxy/MergeProxyTest.java +++ b/hibernate-core/src/test/java/org/hibernate/test/bytecode/enhancement/lazy/proxy/MergeProxyTest.java @@ -206,6 +206,7 @@ public class MergeProxyTest extends BaseNonConfigCoreFunctionalTestCase { } else { final WebApplication webApplication = new WebApplication( i, "http://" + i + ".com" ); + webApplication.setName( "name #" + i ); activity.setWebApplication( webApplication ); webApplication.getActivities().add( activity ); session.save( webApplication ); diff --git a/hibernate-core/src/test/java/org/hibernate/test/bytecode/enhancement/lazy/proxy/ProxyDeletionTest.java b/hibernate-core/src/test/java/org/hibernate/test/bytecode/enhancement/lazy/proxy/ProxyDeletionTest.java index 9528a622d7..634027793b 100644 --- a/hibernate-core/src/test/java/org/hibernate/test/bytecode/enhancement/lazy/proxy/ProxyDeletionTest.java +++ b/hibernate-core/src/test/java/org/hibernate/test/bytecode/enhancement/lazy/proxy/ProxyDeletionTest.java @@ -162,6 +162,7 @@ public class ProxyDeletionTest extends BaseNonConfigCoreFunctionalTestCase { } else { final WebApplication webApplication = new WebApplication( i, "http://" + i + ".com" ); + webApplication.setName( "name #" + i ); activity.setWebApplication( webApplication ); webApplication.getActivities().add( activity ); session.save( webApplication );