Examples of disableFetchProfile()


Examples of org.hibernate.Session.disableFetchProfile()

    assertTrue( "fetch profile not parsed properly", sfi().containsFetchProfileDefinition( "course.details" ) );
    Session s = openSession();
    SessionImplementor si = ( SessionImplementor ) s;
    s.enableFetchProfile( "enrollment.details" );
    assertTrue( si.getLoadQueryInfluencers().hasEnabledFetchProfiles() );
    s.disableFetchProfile( "enrollment.details" );
    assertFalse( si.getLoadQueryInfluencers().hasEnabledFetchProfiles() );
    try {
      s.enableFetchProfile( "never-gonna-get-it" );
      fail( "expecting failure on undefined fetch-profile" );
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.