HHH-4105 Fix mispell in SessionFactory#containsFetchProfileDefition

git-svn-id: https://svn.jboss.org/repos/hibernate/core/trunk@17684 1b8cb986-b30d-0410-93ca-fae66ebed9b2
This commit is contained in:
Emmanuel Bernard 2009-10-10 15:44:29 +00:00
parent 4edcb6290b
commit 85212c51c4
5 changed files with 8 additions and 9 deletions

View File

@ -385,5 +385,5 @@ public interface SessionFactory extends Referenceable, Serializable {
* @param name The name to check * @param name The name to check
* @return True if there is such a fetch profile; false otherwise. * @return True if there is such a fetch profile; false otherwise.
*/ */
public boolean containsFetchProfileDefition(String name); public boolean containsFetchProfileDefinition(String name);
} }

View File

@ -170,7 +170,7 @@ public class LoadQueryInfluencers implements Serializable {
} }
private void checkFetchProfileName(String name) { private void checkFetchProfileName(String name) {
if ( !sessionFactory.containsFetchProfileDefition( name ) ) { if ( !sessionFactory.containsFetchProfileDefinition( name ) ) {
throw new UnknownProfileException( name ); throw new UnknownProfileException( name );
} }
} }

View File

@ -1198,7 +1198,7 @@ public final class SessionFactoryImpl implements SessionFactory, SessionFactoryI
return def; return def;
} }
public boolean containsFetchProfileDefition(String name) { public boolean containsFetchProfileDefinition(String name) {
return fetchProfiles.containsKey( name ); return fetchProfiles.containsKey( name );
} }

View File

@ -204,7 +204,7 @@ public class SessionFactoryStub implements SessionFactory {
return getImpl().getFilterDefinition( filterName ); return getImpl().getFilterDefinition( filterName );
} }
public boolean containsFetchProfileDefition(String name) { public boolean containsFetchProfileDefinition(String name) {
return getImpl().containsFetchProfileDefition( name ); return getImpl().containsFetchProfileDefinition( name );
} }
} }

View File

@ -25,7 +25,6 @@
package org.hibernate.test.fetchprofiles.join; package org.hibernate.test.fetchprofiles.join;
import java.util.List; import java.util.List;
import java.util.Iterator;
import org.hibernate.junit.functional.FunctionalTestCase; import org.hibernate.junit.functional.FunctionalTestCase;
import org.hibernate.Session; import org.hibernate.Session;
@ -168,9 +167,9 @@ public class JoinFetchProfileTest extends FunctionalTestCase {
} }
public void testBasicFetchProfileOperation() { public void testBasicFetchProfileOperation() {
assertTrue( "fetch profile not parsed properly", sfi().containsFetchProfileDefition( "enrollment.details" ) ); assertTrue( "fetch profile not parsed properly", sfi().containsFetchProfileDefinition( "enrollment.details" ) );
assertTrue( "fetch profile not parsed properly", sfi().containsFetchProfileDefition( "offering.details" ) ); assertTrue( "fetch profile not parsed properly", sfi().containsFetchProfileDefinition( "offering.details" ) );
assertTrue( "fetch profile not parsed properly", sfi().containsFetchProfileDefition( "course.details" ) ); assertTrue( "fetch profile not parsed properly", sfi().containsFetchProfileDefinition( "course.details" ) );
Session s = openSession(); Session s = openSession();
SessionImplementor si = ( SessionImplementor ) s; SessionImplementor si = ( SessionImplementor ) s;
s.enableFetchProfile( "enrollment.details" ); s.enableFetchProfile( "enrollment.details" );