Examples of containsFetchProfileDefinition()


Examples of org.hibernate.engine.SessionFactoryImplementor.containsFetchProfileDefinition()

    config.addAnnotatedClass( Country.class );
    SessionFactoryImplementor sessionImpl = ( SessionFactoryImplementor ) config.buildSessionFactory();

    assertTrue(
        "fetch profile not parsed properly",
        sessionImpl.containsFetchProfileDefinition( "customer-with-orders" )
    );
    assertFalse(
        "package info should not be parsed",
        sessionImpl.containsFetchProfileDefinition( "package-profile-1" )
    );
View Full Code Here

Examples of org.hibernate.engine.SessionFactoryImplementor.containsFetchProfileDefinition()

        "fetch profile not parsed properly",
        sessionImpl.containsFetchProfileDefinition( "customer-with-orders" )
    );
    assertFalse(
        "package info should not be parsed",
        sessionImpl.containsFetchProfileDefinition( "package-profile-1" )
    );
  }

  public void testWrongAssociationName() {
    AnnotationConfiguration config = new AnnotationConfiguration();
View Full Code Here

Examples of org.hibernate.engine.SessionFactoryImplementor.containsFetchProfileDefinition()

    config.addInputStream( is );
    SessionFactoryImplementor sessionImpl = ( SessionFactoryImplementor ) config.buildSessionFactory();

    assertTrue(
        "fetch profile not parsed properly",
        sessionImpl.containsFetchProfileDefinition( "orders-profile" )
    );

    // now the same with no xml
    config = new AnnotationConfiguration();
    config.addAnnotatedClass( Customer5.class );
View Full Code Here

Examples of org.hibernate.engine.SessionFactoryImplementor.containsFetchProfileDefinition()

    config.addPackage( Customer.class.getPackage().getName() );
    SessionFactoryImplementor sessionImpl = ( SessionFactoryImplementor ) config.buildSessionFactory();

    assertTrue(
        "fetch profile not parsed properly",
        sessionImpl.containsFetchProfileDefinition( "package-profile-1" )
    );
    assertTrue(
        "fetch profile not parsed properly",
        sessionImpl.containsFetchProfileDefinition( "package-profile-2" )
    );
View Full Code Here

Examples of org.hibernate.engine.SessionFactoryImplementor.containsFetchProfileDefinition()

        "fetch profile not parsed properly",
        sessionImpl.containsFetchProfileDefinition( "package-profile-1" )
    );
    assertTrue(
        "fetch profile not parsed properly",
        sessionImpl.containsFetchProfileDefinition( "package-profile-2" )
    );
  }
}
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.