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:
parent
4edcb6290b
commit
85212c51c4
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -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 );
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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 );
|
||||
}
|
||||
|
||||
|
|
|
@ -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 );
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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" );
|
||||
|
|
Loading…
Reference in New Issue