Author: epbernard
Date: 2009-10-10 11:44:29 -0400 (Sat, 10 Oct 2009)
New Revision: 17684
Modified:
core/trunk/core/src/main/java/org/hibernate/SessionFactory.java
core/trunk/core/src/main/java/org/hibernate/engine/LoadQueryInfluencers.java
core/trunk/core/src/main/java/org/hibernate/impl/SessionFactoryImpl.java
core/trunk/jmx/src/main/java/org/hibernate/jmx/SessionFactoryStub.java
core/trunk/testsuite/src/test/java/org/hibernate/test/fetchprofiles/join/JoinFetchProfileTest.java
Log:
HHH-4105 Fix mispell in SessionFactory#containsFetchProfileDefition
Modified: core/trunk/core/src/main/java/org/hibernate/SessionFactory.java
===================================================================
--- core/trunk/core/src/main/java/org/hibernate/SessionFactory.java 2009-10-09 21:48:41
UTC (rev 17683)
+++ core/trunk/core/src/main/java/org/hibernate/SessionFactory.java 2009-10-10 15:44:29
UTC (rev 17684)
@@ -385,5 +385,5 @@
* @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);
}
Modified: core/trunk/core/src/main/java/org/hibernate/engine/LoadQueryInfluencers.java
===================================================================
---
core/trunk/core/src/main/java/org/hibernate/engine/LoadQueryInfluencers.java 2009-10-09
21:48:41 UTC (rev 17683)
+++
core/trunk/core/src/main/java/org/hibernate/engine/LoadQueryInfluencers.java 2009-10-10
15:44:29 UTC (rev 17684)
@@ -170,7 +170,7 @@
}
private void checkFetchProfileName(String name) {
- if ( !sessionFactory.containsFetchProfileDefition( name ) ) {
+ if ( !sessionFactory.containsFetchProfileDefinition( name ) ) {
throw new UnknownProfileException( name );
}
}
Modified: core/trunk/core/src/main/java/org/hibernate/impl/SessionFactoryImpl.java
===================================================================
--- core/trunk/core/src/main/java/org/hibernate/impl/SessionFactoryImpl.java 2009-10-09
21:48:41 UTC (rev 17683)
+++ core/trunk/core/src/main/java/org/hibernate/impl/SessionFactoryImpl.java 2009-10-10
15:44:29 UTC (rev 17684)
@@ -1198,7 +1198,7 @@
return def;
}
- public boolean containsFetchProfileDefition(String name) {
+ public boolean containsFetchProfileDefinition(String name) {
return fetchProfiles.containsKey( name );
}
Modified: core/trunk/jmx/src/main/java/org/hibernate/jmx/SessionFactoryStub.java
===================================================================
--- core/trunk/jmx/src/main/java/org/hibernate/jmx/SessionFactoryStub.java 2009-10-09
21:48:41 UTC (rev 17683)
+++ core/trunk/jmx/src/main/java/org/hibernate/jmx/SessionFactoryStub.java 2009-10-10
15:44:29 UTC (rev 17684)
@@ -204,7 +204,7 @@
return getImpl().getFilterDefinition( filterName );
}
- public boolean containsFetchProfileDefition(String name) {
- return getImpl().containsFetchProfileDefition( name );
+ public boolean containsFetchProfileDefinition(String name) {
+ return getImpl().containsFetchProfileDefinition( name );
}
}
Modified:
core/trunk/testsuite/src/test/java/org/hibernate/test/fetchprofiles/join/JoinFetchProfileTest.java
===================================================================
---
core/trunk/testsuite/src/test/java/org/hibernate/test/fetchprofiles/join/JoinFetchProfileTest.java 2009-10-09
21:48:41 UTC (rev 17683)
+++
core/trunk/testsuite/src/test/java/org/hibernate/test/fetchprofiles/join/JoinFetchProfileTest.java 2009-10-10
15:44:29 UTC (rev 17684)
@@ -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 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" );