Session s = openSession(); s.beginTransaction(); Mammal tiger = new Mammal(); tiger.setDescription( "Tiger" ); s.persist( tiger ); Mammal mother = new Mammal(); mother.setDescription( "Tiger's mother" ); mother.setBodyWeight( 4.0f ); mother.addOffspring( tiger ); s.persist( mother ); Zoo zoo = new Zoo(); zoo.setName( "Austin Zoo" ); zoo.setMammals( new HashMap() ); zoo.getMammals().put( "tiger", tiger ); s.persist( zoo ); s.getTransaction().commit(); s.close(); s = openSession(); s.beginTransaction(); List results = s.createQuery( "from Zoo zoo where zoo.mammals['tiger'].mother.bodyWeight > 3.0f" ).list(); assertEquals( 1, results.size() ); s.getTransaction().commit(); s.close(); s = openSession(); s.beginTransaction(); s.delete( tiger ); s.delete( mother ); s.delete( zoo ); s.getTransaction().commit(); s.close();
Session s = openSession(); Foo foo = new Foo(); s.save(foo); foo.setString("dirty"); s.flush(); s.connection().commit(); s.close(); s = openSession(); Foo foo2 = new Foo(); s.load( foo2, foo.getKey() ); // There is an interbase bug that causes null integers to return as 0, also numeric precision is <= 15 assertTrue( "create-update", foo.equalsFoo(foo2) ); //System.out.println( s.print(foo2) ); s.delete(foo2); s.flush(); s.connection().commit(); s.close(); s = openSession(); foo = new Foo(); s.save(foo, "assignedid"); foo.setString("dirty"); s.flush(); s.connection().commit(); s.close(); s = openSession(); s.load(foo2, "assignedid"); // There is an interbase bug that causes null integers to return as 0, also numeric precision is <= 15 assertTrue( "create-update", foo.equalsFoo(foo2) ); //System.out.println( s.print(foo2) ); s.delete(foo2); s.flush(); s.connection().commit(); s.close();
Clone fragments detected by clone detection tool
File path: /hibernate-distribution-3.3.2.GA/project/testsuite/src/test/java/org/hibernate/test/hql/ASTParserLoadingTest.java File path: /hibernate-distribution-3.3.2.GA/project/testsuite/src/test/java/org/hibernate/test/legacy/FooBarTest.java
Method name: void testSuperclassPropertyReferenceAfterCollectionIndexedAccess() Method name: void testCreateUpdate()
Number of AST nodes: 30 Number of AST nodes: 29
1
Session s = openSession();
1
Session s = openSession();
2
		s.beginTransaction();
2
		
3
		Mammal tiger = new Mammal();
3
Foo foo = new 
4
		tiger.setDescription( "Tiger" );
5
		s.persist( tiger );
6
		Mammal mother = new Mammal();
7
		mother.setDescription( "Tiger's mother" );
8
		mother.setBodyWeight( 4.0f );
9
		mother.addOffspring( tiger );
10
		s.persist( mother 
4
Foo();
5
		s.save(foo);
6
		foo.setString("dirty");
7
		s.flush();
8
		s.connection().commit();
9
		s.close();
11
);
10
		s = openSession();
12
		Zoo zoo = new Zoo();
11
		Foo foo2 = new Foo();
13
		zoo.setName( "Austin Zoo" );
12
		
14
		zoo.setMammals( new HashMap() );
15
		zoo.getMammals().put( "tiger", tiger );
16
		s.persist( zoo );
17
		s.getTransa
13
s.load( foo2, foo.getKey() );
14
		// There is an interbase bug that causes null integers to return as 0, also numeric precision is <= 15
15
		assertTrue( "create-update", foo.equalsFoo(foo2) );
16
		//System.out.println( s.print(foo2) );
17
		s.delete(foo2);
18
		s.flush();
18
ction().commit();
19
		s.connection().commit();
19
		s.close();
20
		s.close();
20
		s = openSession();
21
		s = openSession();
21
		s.beginTransaction();
22
		
22
		List results = s.createQuery( "from Zoo zoo where zoo.mammals['tiger'].mother.bodyWeight > 3.0f" ).list();
23
		assertEquals( 1, results.size() );
24
		s.getTransa
23
foo = new Foo();
24
		s.save(foo, "assignedid");
25
		foo.setString("dirty");
26
		s.flush();
25
ction().commit();
27
		s.connection().commit();
26
		s.close();
28
		s.close();
27
		s = openSession();
29
		s = openSession();
28
		s.beginTransaction();
30
		s.
29
		s.delete( tiger );
30
		s.delete( mother );
31
		s.delete( zoo );
32
		s.getTransa
31
load(foo2, "assignedid");
32
		// There is an interbase bug that causes null integers to return as 0, also numeric precision is <= 15
33
		assertTrue( "create-update", foo.equalsFoo(foo2) );
34
		//System.out.println( s.print(foo2) );
35
		s.delete(foo2);
36
		s.flush();
33
ction().commit();
37
		s.connection().commit();
34
		s.close();
38
		s.close();
Summary
Number of common nesting structure subtrees1
Number of refactorable cases0
Number of non-refactorable cases1
Time elapsed for finding largest common nesting structure subtrees (ms)0.0
Clones locationClones are in different classes having the same super class
Number of node comparisons618
  1. {Non-refactorable}
    Mapping Summary
    Number of mapped statements13
    Number of unmapped statements in the first code fragment17
    Number of unmapped statements in the second code fragment16
    Time elapsed for statement mapping (ms)0.0
    Clone typeType 3
    Mapped Statements
    ID Statement ID Statement
    1
    Session s = openSession();
    1
    Session s = openSession();
    1
    Session s = openSession();
    Differences
    Expression1Expression2Difference
    org.hibernate.Sessionorg.hibernate.classic.SessionSUBCLASS_TYPE_MISMATCH
    org.hibernate.Sessionorg.hibernate.classic.SessionSUBCLASS_TYPE_MISMATCH
    1
    Session s = openSession();
                                              
    2
    Foo foo = new Foo();
    2
    s.beginTransaction();
    2
    s.beginTransaction();
    Preondition Violations
    Unmatched statement s.beginTransaction(); cannot be moved before or after the extracted code, because it has dependencies to/from statements that will be extracted
                                                    
                                  
    3
    s.save(foo);
    Preondition Violations
    Unmatched statement s.save(foo); cannot be moved before or after the extracted code, because it has dependencies to/from statements that will be extracted
    3
    s.save(foo);
    3
    Mammal tiger = new Mammal();
                                                              
                                                        
    4
    foo.setString("dirty");
    Preondition Violations
    Unmatched statement foo.setString("dirty"); cannot be moved before the extracted code, because it has control dependencies from statements that will be extracted
    4
    foo.setString("dirty");
    4
    tiger.setDescription("Tiger");
    4
    tiger.setDescription("Tiger");
    Preondition Violations
    Unmatched statement tiger.setDescription("Tiger"); cannot be moved before the extracted code, because it has control dependencies from statements that will be extracted
                                                                      
    5
    s.persist(tiger);
    5
    s.persist(tiger);
    5
    s.flush();
    Differences
    Expression1Expression2Difference
    persistflushMETHOD_INVOCATION_NAME_MISMATCH
    org.hibernate.Sessionorg.hibernate.classic.SessionSUBCLASS_TYPE_MISMATCH
    s.persist(tiger)s.flush()ARGUMENT_NUMBER_MISMATCH
    Preondition Violations
    Expression s.persist(tiger) cannot be parameterized, because it has dependencies to/from statements that will be extracted
    Expression s.flush() cannot be parameterized, because it has dependencies to/from statements that will be extracted
    Expression s.persist(tiger) is a void method call, and thus it cannot be parameterized
    Expression s.flush() is a void method call, and thus it cannot be parameterized
    Expression s.persist(tiger) cannot be parameterized, because it has dependencies to/from statements that will be extracted
    Expression s.flush() cannot be parameterized, because it has dependencies to/from statements that will be extracted
    Expression s.persist(tiger) is a void method call, and thus it cannot be parameterized
    Expression s.flush() is a void method call, and thus it cannot be parameterized
    5
    s.flush();
    6
    Mammal mother = new Mammal();
                                                                
                              
    7
    s.close();
    Preondition Violations
    Unmatched statement s.close(); cannot be moved before or after the extracted code, because it has dependencies to/from statements that will be extracted
    7
    s.close();
    7
    mother.setDescription("Tiger's mother");
    7
    mother.setDescription("Tiger's mother");
    Preondition Violations
    Unmatched statement mother.setDescription("Tiger's mother"); cannot be moved before the extracted code, because it has control dependencies from statements that will be extracted
                                                                                          
                                          
    8
    s = openSession();
    Preondition Violations
    Unmatched statement s=openSession(); cannot be moved before or after the extracted code, because it has dependencies to/from statements that will be extracted
    8
    s = openSession();
    8
    mother.setBodyWeight(4.0f);
    8
    mother.setBodyWeight(4.0f);
    Preondition Violations
    Unmatched statement mother.setBodyWeight(4.0f); cannot be moved before the extracted code, because it has control dependencies from statements that will be extracted
                                                                
                                                
    9
    Foo foo2 = new Foo();
    9
    mother.addOffspring(tiger);
    9
    mother.addOffspring(tiger);
    Preondition Violations
    Unmatched statement mother.addOffspring(tiger); cannot be moved before the extracted code, because it has control dependencies from statements that will be extracted
                                                                
    10
    s.persist(mother);
    10
    s.persist(mother);
    Preondition Violations
    Unmatched statement s.persist(mother); cannot be moved before or after the extracted code, because it has dependencies to/from statements that will be extracted
                                                
                                                                                                            
    11
    assertTrue("create-update", foo.equalsFoo(foo2));
    11
    Zoo zoo = new Zoo();
                                                
    12
    zoo.setName("Austin Zoo");
    12
    zoo.setName("Austin Zoo");
    Preondition Violations
    Unmatched statement zoo.setName("Austin Zoo"); cannot be moved before the extracted code, because it has control dependencies from statements that will be extracted
                                                                
    13
    zoo.setMammals(new HashMap());
    13
    zoo.setMammals(new HashMap());
    Preondition Violations
    Unmatched statement zoo.setMammals(new HashMap()); cannot be moved before the extracted code, because it has control dependencies from statements that will be extracted
                                                                        
    14
    zoo.getMammals().put("tiger", tiger);
                                                                                    
    15
    s.persist(zoo);
    15
    s.persist(zoo);
    Preondition Violations
    Unmatched statement s.persist(zoo); cannot be moved before or after the extracted code, because it has dependencies to/from statements that will be extracted
                                          
    16
    s.getTransaction().commit();
    16
    s.getTransaction().commit();
    6
    s.connection().commit();
    Differences
    Expression1Expression2Difference
    getTransactionconnectionMETHOD_INVOCATION_NAME_MISMATCH
    org.hibernate.Transactionjava.sql.ConnectionVARIABLE_TYPE_MISMATCH
    org.hibernate.Sessionorg.hibernate.classic.SessionSUBCLASS_TYPE_MISMATCH
    Preondition Violations
    Expression s.getTransaction() cannot be parameterized, because it has dependencies to/from statements that will be extracted
    Expression s.connection() cannot be parameterized, because it has dependencies to/from statements that will be extracted
    Type org.hibernate.Transaction of variable s.getTransaction() does not match with type java.sql.Connection of variable s.connection()
    • Make classes org.hibernate.Transaction and java.sql.Connection extend a common superclass
    6
    s.connection().commit();
    17
    s.close();
    17
    s.close();
    15
    s.close();
    Differences
    Expression1Expression2Difference
    org.hibernate.Sessionorg.hibernate.classic.SessionSUBCLASS_TYPE_MISMATCH
    15
    s.close();
    18
    s = openSession();
    18
    s = openSession();
    16
    s = openSession();
    Differences
    Expression1Expression2Difference
    org.hibernate.Sessionorg.hibernate.classic.SessionSUBCLASS_TYPE_MISMATCH
    16
    s = openSession();
                                        
    17
    foo = new Foo();
    Preondition Violations
    Unmatched statement foo=new Foo(); cannot be moved before or after the extracted code, because it has dependencies to/from statements that will be extracted
    17
    foo = new Foo();
                                                              
    18
    s.save(foo, "assignedid");
    Preondition Violations
    Unmatched statement s.save(foo,"assignedid"); cannot be moved before or after the extracted code, because it has dependencies to/from statements that will be extracted
    18
    s.save(foo, "assignedid");
                                                          
    19
    foo.setString("dirty");
    Preondition Violations
    Unmatched statement foo.setString("dirty"); cannot be moved before the extracted code, because it has control dependencies from statements that will be extracted
    19
    foo.setString("dirty");
    19
    s.beginTransaction();
    19
    s.beginTransaction();
    Preondition Violations
    Unmatched statement s.beginTransaction(); cannot be moved before or after the extracted code, because it has dependencies to/from statements that will be extracted
                                                      
                                
    20
    s.flush();
    Preondition Violations
    Unmatched statement s.flush(); cannot be moved before or after the extracted code, because it has dependencies to/from statements that will be extracted
    20
    s.flush();
    20
    List results = s.createQuery("from Zoo zoo where zoo.mammals['tiger'].mother.bodyWeight > 3.0f").list();
    20
    List results = s.createQuery("from Zoo zoo where zoo.mammals['tiger'].mother.bodyWeight > 3.0f").list();
    Preondition Violations
    Unmatched statement List results=s.createQuery("from Zoo zoo where zoo.mammals['tiger'].mother.bodyWeight > 3.0f").list(); cannot be moved before or after the extracted code, because it has dependencies to/from statements that will be extracted
                                                                                                                                                                                                                        
    21
    assertEquals(1, results.size());
                                                                          
    22
    s.getTransaction().commit();
    22
    s.getTransaction().commit();
    21
    s.connection().commit();
    Differences
    Expression1Expression2Difference
    getTransactionconnectionMETHOD_INVOCATION_NAME_MISMATCH
    org.hibernate.Transactionjava.sql.ConnectionVARIABLE_TYPE_MISMATCH
    org.hibernate.Sessionorg.hibernate.classic.SessionSUBCLASS_TYPE_MISMATCH
    Preondition Violations
    Expression s.getTransaction() cannot be parameterized, because it has dependencies to/from statements that will be extracted
    Expression s.connection() cannot be parameterized, because it has dependencies to/from statements that will be extracted
    Type org.hibernate.Transaction of variable s.getTransaction() does not match with type java.sql.Connection of variable s.connection()
    • Make classes org.hibernate.Transaction and java.sql.Connection extend a common superclass
    21
    s.connection().commit();
    23
    s.close();
    23
    s.close();
    22
    s.close();
    Differences
    Expression1Expression2Difference
    org.hibernate.Sessionorg.hibernate.classic.SessionSUBCLASS_TYPE_MISMATCH
    22
    s.close();
    24
    s = openSession();
    24
    s = openSession();
    23
    s = openSession();
    Differences
    Expression1Expression2Difference
    org.hibernate.Sessionorg.hibernate.classic.SessionSUBCLASS_TYPE_MISMATCH
    23
    s = openSession();
    25
    s.beginTransaction();
    25
    s.beginTransaction();
    Preondition Violations
    Unmatched statement s.beginTransaction(); cannot be moved before or after the extracted code, because it has dependencies to/from statements that will be extracted
                                                      
    26
    s.delete(tiger);
    26
    s.delete(tiger);
    13
    s.flush();
    Differences
    Expression1Expression2Difference
    deleteflushMETHOD_INVOCATION_NAME_MISMATCH
    org.hibernate.Sessionorg.hibernate.classic.SessionSUBCLASS_TYPE_MISMATCH
    s.delete(tiger)s.flush()ARGUMENT_NUMBER_MISMATCH
    Preondition Violations
    Expression s.delete(tiger) cannot be parameterized, because it has dependencies to/from statements that will be extracted
    Expression s.flush() cannot be parameterized, because it has dependencies to/from statements that will be extracted
    Expression s.delete(tiger) is a void method call, and thus it cannot be parameterized
    Expression s.flush() is a void method call, and thus it cannot be parameterized
    Expression s.delete(tiger) cannot be parameterized, because it has dependencies to/from statements that will be extracted
    Expression s.flush() cannot be parameterized, because it has dependencies to/from statements that will be extracted
    Expression s.delete(tiger) is a void method call, and thus it cannot be parameterized
    Expression s.flush() is a void method call, and thus it cannot be parameterized
    13
    s.flush();
    27
    s.delete(mother);
    27
    s.delete(mother);
    10
    s.load(foo2, foo.getKey());
    Differences
    Expression1Expression2Difference
    deleteloadMETHOD_INVOCATION_NAME_MISMATCH
    org.hibernate.Sessionorg.hibernate.classic.SessionSUBCLASS_TYPE_MISMATCH
    s.delete(mother)s.load(foo2,foo.getKey())ARGUMENT_NUMBER_MISMATCH
    Preondition Violations
    Expression s.delete(mother) cannot be parameterized, because it has dependencies to/from statements that will be extracted
    Expression s.load(foo2,foo.getKey()) cannot be parameterized, because it has dependencies to/from statements that will be extracted
    Expression s.delete(mother) is a void method call, and thus it cannot be parameterized
    Expression s.load(foo2,foo.getKey()) is a void method call, and thus it cannot be parameterized
    Expression s.delete(mother) cannot be parameterized, because it has dependencies to/from statements that will be extracted
    Expression s.load(foo2,foo.getKey()) cannot be parameterized, because it has dependencies to/from statements that will be extracted
    Expression s.delete(mother) is a void method call, and thus it cannot be parameterized
    Expression s.load(foo2,foo.getKey()) is a void method call, and thus it cannot be parameterized
    10
    s.load(foo2, foo.getKey());
    28
    s.delete(zoo);
    28
    s.delete(zoo);
    12
    s.delete(foo2);
    Differences
    Expression1Expression2Difference
    zoofoo2VARIABLE_NAME_MISMATCH
    org.hibernate.test.hql.Zooorg.hibernate.test.legacy.FooVARIABLE_TYPE_MISMATCH
    org.hibernate.Sessionorg.hibernate.classic.SessionSUBCLASS_TYPE_MISMATCH
    Preondition Violations
    Type org.hibernate.test.hql.Zoo of variable zoo does not match with type org.hibernate.test.legacy.Foo of variable foo2
    • Make classes org.hibernate.test.hql.Zoo and org.hibernate.test.legacy.Foo extend a common superclass
    12
    s.delete(foo2);
    29
    s.getTransaction().commit();
    29
    s.getTransaction().commit();
    14
    s.connection().commit();
    Differences
    Expression1Expression2Difference
    getTransactionconnectionMETHOD_INVOCATION_NAME_MISMATCH
    org.hibernate.Transactionjava.sql.ConnectionVARIABLE_TYPE_MISMATCH
    org.hibernate.Sessionorg.hibernate.classic.SessionSUBCLASS_TYPE_MISMATCH
    Preondition Violations
    Expression s.getTransaction() cannot be parameterized, because it has dependencies to/from statements that will be extracted
    Expression s.connection() cannot be parameterized, because it has dependencies to/from statements that will be extracted
    Type org.hibernate.Transaction of variable s.getTransaction() does not match with type java.sql.Connection of variable s.connection()
    • Make classes org.hibernate.Transaction and java.sql.Connection extend a common superclass
    14
    s.connection().commit();
                                                                
    24
    s.load(foo2, "assignedid");
    Preondition Violations
    Unmatched statement s.load(foo2,"assignedid"); cannot be moved before or after the extracted code, because it has dependencies to/from statements that will be extracted
    24
    s.load(foo2, "assignedid");
                                                                                                            
    25
    assertTrue("create-update", foo.equalsFoo(foo2));
                                          
    26
    s.delete(foo2);
    Preondition Violations
    Unmatched statement s.delete(foo2); cannot be moved before or after the extracted code, because it has dependencies to/from statements that will be extracted
    26
    s.delete(foo2);
                                
    27
    s.flush();
    Preondition Violations
    Unmatched statement s.flush(); cannot be moved before or after the extracted code, because it has dependencies to/from statements that will be extracted
    27
    s.flush();
                                                            
    28
    s.connection().commit();
    Preondition Violations
    Unmatched statement s.connection().commit(); cannot be moved before or after the extracted code, because it has dependencies to/from statements that will be extracted
    28
    s.connection().commit();
    30
    s.close();
    30
    s.close();
    29
    s.close();
    Differences
    Expression1Expression2Difference
    org.hibernate.Sessionorg.hibernate.classic.SessionSUBCLASS_TYPE_MISMATCH
    29
    s.close();
    Precondition Violations (59)
    Row Violation
    1Unmatched statement s.beginTransaction(); cannot be moved before or after the extracted code, because it has dependencies to/from statements that will be extracted
    2Unmatched statement s.save(foo); cannot be moved before or after the extracted code, because it has dependencies to/from statements that will be extracted
    3Unmatched statement foo.setString("dirty"); cannot be moved before the extracted code, because it has control dependencies from statements that will be extracted
    4Unmatched statement tiger.setDescription("Tiger"); cannot be moved before the extracted code, because it has control dependencies from statements that will be extracted
    5Expression s.persist(tiger) cannot be parameterized, because it has dependencies to/from statements that will be extracted
    6Expression s.flush() cannot be parameterized, because it has dependencies to/from statements that will be extracted
    7Expression s.persist(tiger) is a void method call, and thus it cannot be parameterized
    8Expression s.flush() is a void method call, and thus it cannot be parameterized
    9Expression s.persist(tiger) cannot be parameterized, because it has dependencies to/from statements that will be extracted
    10Expression s.flush() cannot be parameterized, because it has dependencies to/from statements that will be extracted
    11Expression s.persist(tiger) is a void method call, and thus it cannot be parameterized
    12Expression s.flush() is a void method call, and thus it cannot be parameterized
    13Unmatched statement s.close(); cannot be moved before or after the extracted code, because it has dependencies to/from statements that will be extracted
    14Unmatched statement mother.setDescription("Tiger's mother"); cannot be moved before the extracted code, because it has control dependencies from statements that will be extracted
    15Unmatched statement s=openSession(); cannot be moved before or after the extracted code, because it has dependencies to/from statements that will be extracted
    16Unmatched statement mother.setBodyWeight(4.0f); cannot be moved before the extracted code, because it has control dependencies from statements that will be extracted
    17Unmatched statement mother.addOffspring(tiger); cannot be moved before the extracted code, because it has control dependencies from statements that will be extracted
    18Unmatched statement s.persist(mother); cannot be moved before or after the extracted code, because it has dependencies to/from statements that will be extracted
    19Unmatched statement zoo.setName("Austin Zoo"); cannot be moved before the extracted code, because it has control dependencies from statements that will be extracted
    20Unmatched statement zoo.setMammals(new HashMap()); cannot be moved before the extracted code, because it has control dependencies from statements that will be extracted
    21Unmatched statement s.persist(zoo); cannot be moved before or after the extracted code, because it has dependencies to/from statements that will be extracted
    22Expression s.getTransaction() cannot be parameterized, because it has dependencies to/from statements that will be extracted
    23Expression s.connection() cannot be parameterized, because it has dependencies to/from statements that will be extracted
    24Type org.hibernate.Transaction of variable s.getTransaction() does not match with type java.sql.Connection of variable s.connection()
    25Unmatched statement foo=new Foo(); cannot be moved before or after the extracted code, because it has dependencies to/from statements that will be extracted
    26Unmatched statement s.save(foo,"assignedid"); cannot be moved before or after the extracted code, because it has dependencies to/from statements that will be extracted
    27Unmatched statement foo.setString("dirty"); cannot be moved before the extracted code, because it has control dependencies from statements that will be extracted
    28Unmatched statement s.beginTransaction(); cannot be moved before or after the extracted code, because it has dependencies to/from statements that will be extracted
    29Unmatched statement s.flush(); cannot be moved before or after the extracted code, because it has dependencies to/from statements that will be extracted
    30Unmatched statement List results=s.createQuery("from Zoo zoo where zoo.mammals['tiger'].mother.bodyWeight > 3.0f").list(); cannot be moved before or after the extracted code, because it has dependencies to/from statements that will be extracted
    31Expression s.getTransaction() cannot be parameterized, because it has dependencies to/from statements that will be extracted
    32Expression s.connection() cannot be parameterized, because it has dependencies to/from statements that will be extracted
    33Type org.hibernate.Transaction of variable s.getTransaction() does not match with type java.sql.Connection of variable s.connection()
    34Unmatched statement s.beginTransaction(); cannot be moved before or after the extracted code, because it has dependencies to/from statements that will be extracted
    35Expression s.delete(tiger) cannot be parameterized, because it has dependencies to/from statements that will be extracted
    36Expression s.flush() cannot be parameterized, because it has dependencies to/from statements that will be extracted
    37Expression s.delete(tiger) is a void method call, and thus it cannot be parameterized
    38Expression s.flush() is a void method call, and thus it cannot be parameterized
    39Expression s.delete(tiger) cannot be parameterized, because it has dependencies to/from statements that will be extracted
    40Expression s.flush() cannot be parameterized, because it has dependencies to/from statements that will be extracted
    41Expression s.delete(tiger) is a void method call, and thus it cannot be parameterized
    42Expression s.flush() is a void method call, and thus it cannot be parameterized
    43Expression s.delete(mother) cannot be parameterized, because it has dependencies to/from statements that will be extracted
    44Expression s.load(foo2,foo.getKey()) cannot be parameterized, because it has dependencies to/from statements that will be extracted
    45Expression s.delete(mother) is a void method call, and thus it cannot be parameterized
    46Expression s.load(foo2,foo.getKey()) is a void method call, and thus it cannot be parameterized
    47Expression s.delete(mother) cannot be parameterized, because it has dependencies to/from statements that will be extracted
    48Expression s.load(foo2,foo.getKey()) cannot be parameterized, because it has dependencies to/from statements that will be extracted
    49Expression s.delete(mother) is a void method call, and thus it cannot be parameterized
    50Expression s.load(foo2,foo.getKey()) is a void method call, and thus it cannot be parameterized
    51Type org.hibernate.test.hql.Zoo of variable zoo does not match with type org.hibernate.test.legacy.Foo of variable foo2
    52Expression s.getTransaction() cannot be parameterized, because it has dependencies to/from statements that will be extracted
    53Expression s.connection() cannot be parameterized, because it has dependencies to/from statements that will be extracted
    54Type org.hibernate.Transaction of variable s.getTransaction() does not match with type java.sql.Connection of variable s.connection()
    55Unmatched statement s.load(foo2,"assignedid"); cannot be moved before or after the extracted code, because it has dependencies to/from statements that will be extracted
    56Unmatched statement s.delete(foo2); cannot be moved before or after the extracted code, because it has dependencies to/from statements that will be extracted
    57Unmatched statement s.flush(); cannot be moved before or after the extracted code, because it has dependencies to/from statements that will be extracted
    58Unmatched statement s.connection().commit(); cannot be moved before or after the extracted code, because it has dependencies to/from statements that will be extracted
    59Clone fragment #1 returns variable s with type org.hibernate.Session , while Clone fragment #2 returns variable s with type org.hibernate.classic.Session