From 85212c51c40a90d973bdf48919d7b7a08217d0ca Mon Sep 17 00:00:00 2001 From: Emmanuel Bernard Date: Sat, 10 Oct 2009 15:44:29 +0000 Subject: [PATCH] HHH-4105 Fix mispell in SessionFactory#containsFetchProfileDefition git-svn-id: https://svn.jboss.org/repos/hibernate/core/trunk@17684 1b8cb986-b30d-0410-93ca-fae66ebed9b2 --- core/src/main/java/org/hibernate/SessionFactory.java | 2 +- .../java/org/hibernate/engine/LoadQueryInfluencers.java | 2 +- .../main/java/org/hibernate/impl/SessionFactoryImpl.java | 2 +- .../main/java/org/hibernate/jmx/SessionFactoryStub.java | 4 ++-- .../test/fetchprofiles/join/JoinFetchProfileTest.java | 7 +++---- 5 files changed, 8 insertions(+), 9 deletions(-) diff --git a/core/src/main/java/org/hibernate/SessionFactory.java b/core/src/main/java/org/hibernate/SessionFactory.java index a22364d582..70f1e4db61 100644 --- a/core/src/main/java/org/hibernate/SessionFactory.java +++ b/core/src/main/java/org/hibernate/SessionFactory.java @@ -385,5 +385,5 @@ public interface SessionFactory extends Referenceable, Serializable { * @param name The name to check * @return True if there is such a fetch profile; false otherwise. */ - public boolean containsFetchProfileDefition(String name); + public boolean containsFetchProfileDefinition(String name); } diff --git a/core/src/main/java/org/hibernate/engine/LoadQueryInfluencers.java b/core/src/main/java/org/hibernate/engine/LoadQueryInfluencers.java index 1d24a9b68a..8fd471530d 100644 --- a/core/src/main/java/org/hibernate/engine/LoadQueryInfluencers.java +++ b/core/src/main/java/org/hibernate/engine/LoadQueryInfluencers.java @@ -170,7 +170,7 @@ public class LoadQueryInfluencers implements Serializable { } private void checkFetchProfileName(String name) { - if ( !sessionFactory.containsFetchProfileDefition( name ) ) { + if ( !sessionFactory.containsFetchProfileDefinition( name ) ) { throw new UnknownProfileException( name ); } } diff --git a/core/src/main/java/org/hibernate/impl/SessionFactoryImpl.java b/core/src/main/java/org/hibernate/impl/SessionFactoryImpl.java index bc99773a5b..81cf213d77 100644 --- a/core/src/main/java/org/hibernate/impl/SessionFactoryImpl.java +++ b/core/src/main/java/org/hibernate/impl/SessionFactoryImpl.java @@ -1198,7 +1198,7 @@ public final class SessionFactoryImpl implements SessionFactory, SessionFactoryI return def; } - public boolean containsFetchProfileDefition(String name) { + public boolean containsFetchProfileDefinition(String name) { return fetchProfiles.containsKey( name ); } diff --git a/jmx/src/main/java/org/hibernate/jmx/SessionFactoryStub.java b/jmx/src/main/java/org/hibernate/jmx/SessionFactoryStub.java index e883e305d0..c9e18a57ec 100644 --- a/jmx/src/main/java/org/hibernate/jmx/SessionFactoryStub.java +++ b/jmx/src/main/java/org/hibernate/jmx/SessionFactoryStub.java @@ -204,7 +204,7 @@ public class SessionFactoryStub implements SessionFactory { return getImpl().getFilterDefinition( filterName ); } - public boolean containsFetchProfileDefition(String name) { - return getImpl().containsFetchProfileDefition( name ); + public boolean containsFetchProfileDefinition(String name) { + return getImpl().containsFetchProfileDefinition( name ); } } diff --git a/testsuite/src/test/java/org/hibernate/test/fetchprofiles/join/JoinFetchProfileTest.java b/testsuite/src/test/java/org/hibernate/test/fetchprofiles/join/JoinFetchProfileTest.java index 78e498e5f5..859d72915a 100644 --- a/testsuite/src/test/java/org/hibernate/test/fetchprofiles/join/JoinFetchProfileTest.java +++ b/testsuite/src/test/java/org/hibernate/test/fetchprofiles/join/JoinFetchProfileTest.java @@ -25,7 +25,6 @@ package org.hibernate.test.fetchprofiles.join; import java.util.List; -import java.util.Iterator; import org.hibernate.junit.functional.FunctionalTestCase; import org.hibernate.Session; @@ -168,9 +167,9 @@ public class JoinFetchProfileTest extends FunctionalTestCase { } public void testBasicFetchProfileOperation() { - assertTrue( "fetch profile not parsed properly", sfi().containsFetchProfileDefition( "enrollment.details" ) ); - assertTrue( "fetch profile not parsed properly", sfi().containsFetchProfileDefition( "offering.details" ) ); - assertTrue( "fetch profile not parsed properly", sfi().containsFetchProfileDefition( "course.details" ) ); + assertTrue( "fetch profile not parsed properly", sfi().containsFetchProfileDefinition( "enrollment.details" ) ); + assertTrue( "fetch profile not parsed properly", sfi().containsFetchProfileDefinition( "offering.details" ) ); + assertTrue( "fetch profile not parsed properly", sfi().containsFetchProfileDefinition( "course.details" ) ); Session s = openSession(); SessionImplementor si = ( SessionImplementor ) s; s.enableFetchProfile( "enrollment.details" );