From 2f3a967c65c665b4252b3da5b141ed3850c87682 Mon Sep 17 00:00:00 2001 From: Steve Ebersole Date: Wed, 20 Jan 2010 19:16:38 +0000 Subject: [PATCH] HHH-4726 - Add support for delete-orphan cascading to git-svn-id: https://svn.jboss.org/repos/hibernate/core/trunk@18593 1b8cb986-b30d-0410-93ca-fae66ebed9b2 --- core/src/main/java/org/hibernate/type/ManyToOneType.java | 4 ++-- .../hibernate/test/component/cascading/collection/Value.java | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/core/src/main/java/org/hibernate/type/ManyToOneType.java b/core/src/main/java/org/hibernate/type/ManyToOneType.java index a86b4fc1fe..44e16404c1 100644 --- a/core/src/main/java/org/hibernate/type/ManyToOneType.java +++ b/core/src/main/java/org/hibernate/type/ManyToOneType.java @@ -65,7 +65,7 @@ public class ManyToOneType extends EntityType { * @param lazy Should the association be handled lazily */ public ManyToOneType(String referencedEntityName, boolean lazy) { - this( referencedEntityName, null, !lazy, true, false, false ); + this( referencedEntityName, null, lazy, true, false, false ); } /** @@ -79,7 +79,7 @@ public class ManyToOneType extends EntityType { boolean unwrapProxy, boolean isEmbeddedInXML, boolean ignoreNotFound) { - this( referencedEntityName, uniqueKeyPropertyName, !lazy, isEmbeddedInXML, unwrapProxy, ignoreNotFound, false ); + this( referencedEntityName, uniqueKeyPropertyName, lazy, unwrapProxy, isEmbeddedInXML, ignoreNotFound, false ); } public ManyToOneType( diff --git a/testsuite/src/test/java/org/hibernate/test/component/cascading/collection/Value.java b/testsuite/src/test/java/org/hibernate/test/component/cascading/collection/Value.java index 8f3d5453d9..e6daafaa11 100644 --- a/testsuite/src/test/java/org/hibernate/test/component/cascading/collection/Value.java +++ b/testsuite/src/test/java/org/hibernate/test/component/cascading/collection/Value.java @@ -10,7 +10,7 @@ public class Value { private Definition definition; private LocalizedStrings localizedStrings = new LocalizedStrings(); - private Value() { + protected Value() { } public Value(Definition definition) {