From f17ea81cff6c92898d249b76d571cc675a9bb9ce 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 (cherry picked from commit dbb94d80664e54ef398b8772ca3715bc6d0b3d8c) --- .../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 f3d38c16eb..f73c55f214 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 05926d24b7..03d02fa68e 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 );