Session s = openSession(); Transaction t = s.beginTransaction(); Customer c = new Customer(); c.setName( "Emmanuel" ); c.setCustomerId( "C123-456" ); c.setPersonId( "P123-456" ); Account a = new Account(); a.setCustomer( c ); a.setPerson( c ); a.setType( 'X' ); s.persist( c ); s.persist( a ); t.commit(); s.close(); s = openSession(); t = s.beginTransaction(); a = ( Account ) s.createQuery( "from Account acc join fetch acc.customer join fetch acc.person" ) .uniqueResult(); assertNotNull( a.getCustomer() ); assertTrue( Hibernate.isInitialized( a.getCustomer() ) ); assertNotNull( a.getPerson() ); assertTrue( Hibernate.isInitialized( a.getPerson() ) ); c = ( Customer ) s.createQuery( "from Customer" ).uniqueResult(); assertSame( c, a.getCustomer() ); assertSame( c, a.getPerson() ); s.delete( a ); s.delete( a.getCustomer() ); s.delete( a.getPerson() ); t.commit(); s.close();
Session s = openSession(); Transaction t = s.beginTransaction(); Customer c = new Customer(); c.setName( "Emmanuel" ); c.setCustomerId( "C123-456" ); c.setPersonId( "P123-456" ); Account a = new Account(); a.setCustomer( c ); a.setPerson( c ); a.setType( 'X' ); s.persist( c ); s.persist( a ); t.commit(); s.close(); s = openSession(); t = s.beginTransaction(); a = ( Account ) s.createQuery( "from Account acc join fetch acc.customer join fetch acc.person" ) .uniqueResult(); assertNotNull( a.getCustomer() ); assertTrue( Hibernate.isInitialized( a.getCustomer() ) ); assertNotNull( a.getPerson() ); assertTrue( Hibernate.isInitialized( a.getPerson() ) ); c = ( Customer ) s.createQuery( "from Customer" ).uniqueResult(); assertSame( c, a.getCustomer() ); assertSame( c, a.getPerson() ); s.delete( a ); s.delete( a.getCustomer() ); s.delete( a.getPerson() ); t.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/propertyref/inheritence/discrim/SubclassPropertyRefTest.java File path: /hibernate-distribution-3.3.2.GA/project/testsuite/src/test/java/org/hibernate/test/propertyref/inheritence/union/UnionSubclassPropertyRefTest.java
Method name: void testOneToOnePropertyRef() Method name: void testOneToOnePropertyRef()
Number of AST nodes: 29 Number of AST nodes: 29
1
Session s = openSession();
1
Session s = openSession();
2
		Transaction t = s.beginTransaction();
2
		Transaction t = s.beginTransaction();
3
		Customer c = new Customer();
3
		Customer c = new Customer();
4
		c.setName( "Emmanuel" );
4
		c.setName( "Emmanuel" );
5
		c.setCustomerId( "C123-456" );
5
		c.setCustomerId( "C123-456" );
6
		c.setPersonId( "P123-456" );
6
		c.setPersonId( "P123-456" );
7
		Account a = new Account();
7
		Account a = new Account();
8
		a.setCustomer( c );
8
		a.setCustomer( c );
9
		a.setPerson( c );
9
		a.setPerson( c );
10
		a.setType( 'X' );
10
		a.setType( 'X' );
11
		s.persist( c );
11
		s.persist( c );
12
		s.persist( a );
12
		s.persist( a );
13
		t.commit();
13
		t.commit();
14
		s.close();
14
		s.close();
15
		s = openSession();
15
		s = openSession();
16
		t = s.beginTransaction();
16
		t = s.beginTransaction();
17
		a = ( Account ) s.createQuery( "from Account acc join fetch acc.customer join fetch acc.person" )
17
		a = ( Account ) s.createQuery( "from Account acc join fetch acc.customer join fetch acc.person" )
18
				.uniqueResult();
18
				.uniqueResult();
19
		assertNotNull( a.getCustomer() );
19
		assertNotNull( a.getCustomer() );
20
		assertTrue( Hibernate.isInitialized( a.getCustomer() ) );
20
		assertTrue( Hibernate.isInitialized( a.getCustomer() ) );
21
		assertNotNull( a.getPerson() );
21
		assertNotNull( a.getPerson() );
22
		assertTrue( Hibernate.isInitialized( a.getPerson() ) );
22
		assertTrue( Hibernate.isInitialized( a.getPerson() ) );
23
		c = ( Customer ) s.createQuery( "from Customer" ).uniqueResult();
23
		c = ( Customer ) s.createQuery( "from Customer" ).uniqueResult();
24
		assertSame( c, a.getCustomer() );
24
		assertSame( c, a.getCustomer() );
25
		assertSame( c, a.getPerson() );
25
		assertSame( c, a.getPerson() );
26
		s.delete( a );
26
		s.delete( a );
27
		s.delete( a.getCustomer() );
27
		s.delete( a.getCustomer() );
28
		s.delete( a.getPerson() );
28
		s.delete( a.getPerson() );
29
		t.commit();
29
		t.commit();
30
		s.close();
30
		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 comparisons406
  1. {Non-refactorable}
    Mapping Summary
    Number of mapped statements25
    Number of unmapped statements in the first code fragment4
    Number of unmapped statements in the second code fragment4
    Time elapsed for statement mapping (ms)0.0
    Clone typeType 2
    Mapped Statements
    ID Statement ID Statement
    1
    Session s = openSession();
    1
    Session s = openSession();
    2
    Transaction t = s.beginTransaction();
    2
    Transaction t = s.beginTransaction();
                                                              
    3
    Customer c = new Customer();
    3
    Customer c = new Customer();
                                                              
    4
    c.setName("Emmanuel");
    4
    c.setName("Emmanuel");
    4
    c.setName("Emmanuel");
    Differences
    Expression1Expression2Difference
    org.hibernate.test.propertyref.inheritence.discrim.Customerorg.hibernate.test.propertyref.inheritence.union.CustomerVARIABLE_TYPE_MISMATCH
    Preondition Violations
    Type org.hibernate.test.propertyref.inheritence.discrim.Customer of variable c does not match with type org.hibernate.test.propertyref.inheritence.union.Customer of variable c
    • Make classes org.hibernate.test.propertyref.inheritence.discrim.Customer and org.hibernate.test.propertyref.inheritence.union.Customer extend a common superclass
    4
    c.setName("Emmanuel");
    5
    c.setCustomerId("C123-456");
    5
    c.setCustomerId("C123-456");
    5
    c.setCustomerId("C123-456");
    Differences
    Expression1Expression2Difference
    org.hibernate.test.propertyref.inheritence.discrim.Customerorg.hibernate.test.propertyref.inheritence.union.CustomerVARIABLE_TYPE_MISMATCH
    Preondition Violations
    Type org.hibernate.test.propertyref.inheritence.discrim.Customer of variable c does not match with type org.hibernate.test.propertyref.inheritence.union.Customer of variable c
    • Make classes org.hibernate.test.propertyref.inheritence.discrim.Customer and org.hibernate.test.propertyref.inheritence.union.Customer extend a common superclass
    5
    c.setCustomerId("C123-456");
    6
    c.setPersonId("P123-456");
    6
    c.setPersonId("P123-456");
    6
    c.setPersonId("P123-456");
    Differences
    Expression1Expression2Difference
    org.hibernate.test.propertyref.inheritence.discrim.Customerorg.hibernate.test.propertyref.inheritence.union.CustomerVARIABLE_TYPE_MISMATCH
    Preondition Violations
    Type org.hibernate.test.propertyref.inheritence.discrim.Customer of variable c does not match with type org.hibernate.test.propertyref.inheritence.union.Customer of variable c
    • Make classes org.hibernate.test.propertyref.inheritence.discrim.Customer and org.hibernate.test.propertyref.inheritence.union.Customer extend a common superclass
    6
    c.setPersonId("P123-456");
                                                          
    7
    Account a = new Account();
    7
    Account a = new Account();
                                                          
    8
    a.setCustomer(c);
    8
    a.setCustomer(c);
    8
    a.setCustomer(c);
    Differences
    Expression1Expression2Difference
    org.hibernate.test.propertyref.inheritence.discrim.Customerorg.hibernate.test.propertyref.inheritence.union.CustomerVARIABLE_TYPE_MISMATCH
    org.hibernate.test.propertyref.inheritence.discrim.Accountorg.hibernate.test.propertyref.inheritence.union.AccountVARIABLE_TYPE_MISMATCH
    Preondition Violations
    Type org.hibernate.test.propertyref.inheritence.discrim.Customer of variable c does not match with type org.hibernate.test.propertyref.inheritence.union.Customer of variable c
    • Make classes org.hibernate.test.propertyref.inheritence.discrim.Customer and org.hibernate.test.propertyref.inheritence.union.Customer extend a common superclass
    Type org.hibernate.test.propertyref.inheritence.discrim.Account of variable a does not match with type org.hibernate.test.propertyref.inheritence.union.Account of variable a
    • Make classes org.hibernate.test.propertyref.inheritence.discrim.Account and org.hibernate.test.propertyref.inheritence.union.Account extend a common superclass
    8
    a.setCustomer(c);
    9
    a.setPerson(c);
    9
    a.setPerson(c);
    9
    a.setPerson(c);
    Differences
    Expression1Expression2Difference
    org.hibernate.test.propertyref.inheritence.discrim.Customerorg.hibernate.test.propertyref.inheritence.union.CustomerVARIABLE_TYPE_MISMATCH
    org.hibernate.test.propertyref.inheritence.discrim.Accountorg.hibernate.test.propertyref.inheritence.union.AccountVARIABLE_TYPE_MISMATCH
    Preondition Violations
    Type org.hibernate.test.propertyref.inheritence.discrim.Customer of variable c does not match with type org.hibernate.test.propertyref.inheritence.union.Customer of variable c
    • Make classes org.hibernate.test.propertyref.inheritence.discrim.Customer and org.hibernate.test.propertyref.inheritence.union.Customer extend a common superclass
    Type org.hibernate.test.propertyref.inheritence.discrim.Account of variable a does not match with type org.hibernate.test.propertyref.inheritence.union.Account of variable a
    • Make classes org.hibernate.test.propertyref.inheritence.discrim.Account and org.hibernate.test.propertyref.inheritence.union.Account extend a common superclass
    9
    a.setPerson(c);
    10
    a.setType('X');
    10
    a.setType('X');
    10
    a.setType('X');
    Differences
    Expression1Expression2Difference
    org.hibernate.test.propertyref.inheritence.discrim.Accountorg.hibernate.test.propertyref.inheritence.union.AccountVARIABLE_TYPE_MISMATCH
    Preondition Violations
    Type org.hibernate.test.propertyref.inheritence.discrim.Account of variable a does not match with type org.hibernate.test.propertyref.inheritence.union.Account of variable a
    • Make classes org.hibernate.test.propertyref.inheritence.discrim.Account and org.hibernate.test.propertyref.inheritence.union.Account extend a common superclass
    10
    a.setType('X');
    11
    s.persist(c);
    11
    s.persist(c);
    11
    s.persist(c);
    Differences
    Expression1Expression2Difference
    org.hibernate.test.propertyref.inheritence.discrim.Customerorg.hibernate.test.propertyref.inheritence.union.CustomerVARIABLE_TYPE_MISMATCH
    Preondition Violations
    Type org.hibernate.test.propertyref.inheritence.discrim.Customer of variable c does not match with type org.hibernate.test.propertyref.inheritence.union.Customer of variable c
    • Make classes org.hibernate.test.propertyref.inheritence.discrim.Customer and org.hibernate.test.propertyref.inheritence.union.Customer extend a common superclass
    11
    s.persist(c);
    12
    s.persist(a);
    12
    s.persist(a);
    12
    s.persist(a);
    Differences
    Expression1Expression2Difference
    org.hibernate.test.propertyref.inheritence.discrim.Accountorg.hibernate.test.propertyref.inheritence.union.AccountVARIABLE_TYPE_MISMATCH
    Preondition Violations
    Type org.hibernate.test.propertyref.inheritence.discrim.Account of variable a does not match with type org.hibernate.test.propertyref.inheritence.union.Account of variable a
    • Make classes org.hibernate.test.propertyref.inheritence.discrim.Account and org.hibernate.test.propertyref.inheritence.union.Account extend a common superclass
    12
    s.persist(a);
    13
    t.commit();
    13
    t.commit();
    14
    s.close();
    14
    s.close();
    15
    s = openSession();
    15
    s = openSession();
    16
    t = s.beginTransaction();
    16
    t = s.beginTransaction();
                                                                                                                                                                                                                                
    17
    a = (Account)s.createQuery("from Account acc join fetch acc.customer join fetch acc.person").uniqueResult();
    Preondition Violations
    Unmatched statement a=(Account)s.createQuery("from Account acc join fetch acc.customer join fetch acc.person").uniqueResult(); cannot be moved before or after the extracted code, because it has dependencies to/from statements that will be extracted
    17
    a = (Account)s.createQuery("from Account acc join fetch acc.customer join fetch acc.person").uniqueResult();
    17
    a = (Account)s.createQuery("from Account acc join fetch acc.customer join fetch acc.person").uniqueResult();
    17
    a = (Account)s.createQuery("from Account acc join fetch acc.customer join fetch acc.person").uniqueResult();
    Preondition Violations
    Unmatched statement a=(Account)s.createQuery("from Account acc join fetch acc.customer join fetch acc.person").uniqueResult(); cannot be moved before or after the extracted code, because it has dependencies to/from statements that will be extracted
                                                                                                                                                                                                                                
    18
    assertNotNull(a.getCustomer());
    18
    assertNotNull(a.getCustomer());
    18
    assertNotNull(a.getCustomer());
    Differences
    Expression1Expression2Difference
    org.hibernate.test.propertyref.inheritence.discrim.Customerorg.hibernate.test.propertyref.inheritence.union.CustomerVARIABLE_TYPE_MISMATCH
    org.hibernate.test.propertyref.inheritence.discrim.Accountorg.hibernate.test.propertyref.inheritence.union.AccountVARIABLE_TYPE_MISMATCH
    Preondition Violations
    Expression a.getCustomer() cannot be parameterized, because it has dependencies to/from statements that will be extracted
    Expression a.getCustomer() cannot be parameterized, because it has dependencies to/from statements that will be extracted
    Type org.hibernate.test.propertyref.inheritence.discrim.Customer of variable a.getCustomer() does not match with type org.hibernate.test.propertyref.inheritence.union.Customer of variable a.getCustomer()
    • Make classes org.hibernate.test.propertyref.inheritence.discrim.Customer and org.hibernate.test.propertyref.inheritence.union.Customer extend a common superclass
    Type org.hibernate.test.propertyref.inheritence.discrim.Account of variable a does not match with type org.hibernate.test.propertyref.inheritence.union.Account of variable a
    • Make classes org.hibernate.test.propertyref.inheritence.discrim.Account and org.hibernate.test.propertyref.inheritence.union.Account extend a common superclass
    18
    assertNotNull(a.getCustomer());
    19
    assertTrue(Hibernate.isInitialized(a.getCustomer()));
    19
    assertTrue(Hibernate.isInitialized(a.getCustomer()));
    19
    assertTrue(Hibernate.isInitialized(a.getCustomer()));
    Differences
    Expression1Expression2Difference
    org.hibernate.test.propertyref.inheritence.discrim.Customerorg.hibernate.test.propertyref.inheritence.union.CustomerVARIABLE_TYPE_MISMATCH
    org.hibernate.test.propertyref.inheritence.discrim.Accountorg.hibernate.test.propertyref.inheritence.union.AccountVARIABLE_TYPE_MISMATCH
    Preondition Violations
    Expression a.getCustomer() cannot be parameterized, because it has dependencies to/from statements that will be extracted
    Expression a.getCustomer() cannot be parameterized, because it has dependencies to/from statements that will be extracted
    Type org.hibernate.test.propertyref.inheritence.discrim.Customer of variable a.getCustomer() does not match with type org.hibernate.test.propertyref.inheritence.union.Customer of variable a.getCustomer()
    • Make classes org.hibernate.test.propertyref.inheritence.discrim.Customer and org.hibernate.test.propertyref.inheritence.union.Customer extend a common superclass
    Type org.hibernate.test.propertyref.inheritence.discrim.Account of variable a does not match with type org.hibernate.test.propertyref.inheritence.union.Account of variable a
    • Make classes org.hibernate.test.propertyref.inheritence.discrim.Account and org.hibernate.test.propertyref.inheritence.union.Account extend a common superclass
    19
    assertTrue(Hibernate.isInitialized(a.getCustomer()));
    20
    assertNotNull(a.getPerson());
    20
    assertNotNull(a.getPerson());
    20
    assertNotNull(a.getPerson());
    Differences
    Expression1Expression2Difference
    org.hibernate.test.propertyref.inheritence.discrim.Personorg.hibernate.test.propertyref.inheritence.union.PersonVARIABLE_TYPE_MISMATCH
    org.hibernate.test.propertyref.inheritence.discrim.Accountorg.hibernate.test.propertyref.inheritence.union.AccountVARIABLE_TYPE_MISMATCH
    Preondition Violations
    Expression a.getPerson() cannot be parameterized, because it has dependencies to/from statements that will be extracted
    Expression a.getPerson() cannot be parameterized, because it has dependencies to/from statements that will be extracted
    Type org.hibernate.test.propertyref.inheritence.discrim.Person of variable a.getPerson() does not match with type org.hibernate.test.propertyref.inheritence.union.Person of variable a.getPerson()
    • Make classes org.hibernate.test.propertyref.inheritence.discrim.Person and org.hibernate.test.propertyref.inheritence.union.Person extend a common superclass
    Type org.hibernate.test.propertyref.inheritence.discrim.Account of variable a does not match with type org.hibernate.test.propertyref.inheritence.union.Account of variable a
    • Make classes org.hibernate.test.propertyref.inheritence.discrim.Account and org.hibernate.test.propertyref.inheritence.union.Account extend a common superclass
    20
    assertNotNull(a.getPerson());
    21
    assertTrue(Hibernate.isInitialized(a.getPerson()));
    21
    assertTrue(Hibernate.isInitialized(a.getPerson()));
    21
    assertTrue(Hibernate.isInitialized(a.getPerson()));
    Differences
    Expression1Expression2Difference
    org.hibernate.test.propertyref.inheritence.discrim.Personorg.hibernate.test.propertyref.inheritence.union.PersonVARIABLE_TYPE_MISMATCH
    org.hibernate.test.propertyref.inheritence.discrim.Accountorg.hibernate.test.propertyref.inheritence.union.AccountVARIABLE_TYPE_MISMATCH
    Preondition Violations
    Expression a.getPerson() cannot be parameterized, because it has dependencies to/from statements that will be extracted
    Expression a.getPerson() cannot be parameterized, because it has dependencies to/from statements that will be extracted
    Type org.hibernate.test.propertyref.inheritence.discrim.Person of variable a.getPerson() does not match with type org.hibernate.test.propertyref.inheritence.union.Person of variable a.getPerson()
    • Make classes org.hibernate.test.propertyref.inheritence.discrim.Person and org.hibernate.test.propertyref.inheritence.union.Person extend a common superclass
    Type org.hibernate.test.propertyref.inheritence.discrim.Account of variable a does not match with type org.hibernate.test.propertyref.inheritence.union.Account of variable a
    • Make classes org.hibernate.test.propertyref.inheritence.discrim.Account and org.hibernate.test.propertyref.inheritence.union.Account extend a common superclass
    21
    assertTrue(Hibernate.isInitialized(a.getPerson()));
                                                                                                                                
    22
    c = (Customer)s.createQuery("from Customer").uniqueResult();
    Preondition Violations
    Unmatched statement c=(Customer)s.createQuery("from Customer").uniqueResult(); cannot be moved before or after the extracted code, because it has dependencies to/from statements that will be extracted
    22
    c = (Customer)s.createQuery("from Customer").uniqueResult();
    22
    c = (Customer)s.createQuery("from Customer").uniqueResult();
    22
    c = (Customer)s.createQuery("from Customer").uniqueResult();
    Preondition Violations
    Unmatched statement c=(Customer)s.createQuery("from Customer").uniqueResult(); cannot be moved before or after the extracted code, because it has dependencies to/from statements that will be extracted
                                                                                                                                
    23
    assertSame(c, a.getCustomer());
    23
    assertSame(c, a.getCustomer());
    23
    assertSame(c, a.getCustomer());
    Differences
    Expression1Expression2Difference
    org.hibernate.test.propertyref.inheritence.discrim.Customerorg.hibernate.test.propertyref.inheritence.union.CustomerVARIABLE_TYPE_MISMATCH
    Preondition Violations
    Type org.hibernate.test.propertyref.inheritence.discrim.Customer of variable c does not match with type org.hibernate.test.propertyref.inheritence.union.Customer of variable c
    • Make classes org.hibernate.test.propertyref.inheritence.discrim.Customer and org.hibernate.test.propertyref.inheritence.union.Customer extend a common superclass
    23
    assertSame(c, a.getCustomer());
    24
    assertSame(c, a.getPerson());
    24
    assertSame(c, a.getPerson());
    24
    assertSame(c, a.getPerson());
    Differences
    Expression1Expression2Difference
    org.hibernate.test.propertyref.inheritence.discrim.Customerorg.hibernate.test.propertyref.inheritence.union.CustomerVARIABLE_TYPE_MISMATCH
    Preondition Violations
    Type org.hibernate.test.propertyref.inheritence.discrim.Customer of variable c does not match with type org.hibernate.test.propertyref.inheritence.union.Customer of variable c
    • Make classes org.hibernate.test.propertyref.inheritence.discrim.Customer and org.hibernate.test.propertyref.inheritence.union.Customer extend a common superclass
    24
    assertSame(c, a.getPerson());
    25
    s.delete(a);
    25
    s.delete(a);
    25
    s.delete(a);
    Differences
    Expression1Expression2Difference
    org.hibernate.test.propertyref.inheritence.discrim.Accountorg.hibernate.test.propertyref.inheritence.union.AccountVARIABLE_TYPE_MISMATCH
    Preondition Violations
    Type org.hibernate.test.propertyref.inheritence.discrim.Account of variable a does not match with type org.hibernate.test.propertyref.inheritence.union.Account of variable a
    • Make classes org.hibernate.test.propertyref.inheritence.discrim.Account and org.hibernate.test.propertyref.inheritence.union.Account extend a common superclass
    25
    s.delete(a);
    26
    s.delete(a.getCustomer());
    26
    s.delete(a.getCustomer());
    26
    s.delete(a.getCustomer());
    Differences
    Expression1Expression2Difference
    org.hibernate.test.propertyref.inheritence.discrim.Customerorg.hibernate.test.propertyref.inheritence.union.CustomerVARIABLE_TYPE_MISMATCH
    org.hibernate.test.propertyref.inheritence.discrim.Accountorg.hibernate.test.propertyref.inheritence.union.AccountVARIABLE_TYPE_MISMATCH
    Preondition Violations
    Expression a.getCustomer() cannot be parameterized, because it has dependencies to/from statements that will be extracted
    Expression a.getCustomer() cannot be parameterized, because it has dependencies to/from statements that will be extracted
    Type org.hibernate.test.propertyref.inheritence.discrim.Customer of variable a.getCustomer() does not match with type org.hibernate.test.propertyref.inheritence.union.Customer of variable a.getCustomer()
    • Make classes org.hibernate.test.propertyref.inheritence.discrim.Customer and org.hibernate.test.propertyref.inheritence.union.Customer extend a common superclass
    Type org.hibernate.test.propertyref.inheritence.discrim.Account of variable a does not match with type org.hibernate.test.propertyref.inheritence.union.Account of variable a
    • Make classes org.hibernate.test.propertyref.inheritence.discrim.Account and org.hibernate.test.propertyref.inheritence.union.Account extend a common superclass
    26
    s.delete(a.getCustomer());
    27
    s.delete(a.getPerson());
    27
    s.delete(a.getPerson());
    27
    s.delete(a.getPerson());
    Differences
    Expression1Expression2Difference
    org.hibernate.test.propertyref.inheritence.discrim.Personorg.hibernate.test.propertyref.inheritence.union.PersonVARIABLE_TYPE_MISMATCH
    org.hibernate.test.propertyref.inheritence.discrim.Accountorg.hibernate.test.propertyref.inheritence.union.AccountVARIABLE_TYPE_MISMATCH
    Preondition Violations
    Expression a.getPerson() cannot be parameterized, because it has dependencies to/from statements that will be extracted
    Expression a.getPerson() cannot be parameterized, because it has dependencies to/from statements that will be extracted
    Type org.hibernate.test.propertyref.inheritence.discrim.Person of variable a.getPerson() does not match with type org.hibernate.test.propertyref.inheritence.union.Person of variable a.getPerson()
    • Make classes org.hibernate.test.propertyref.inheritence.discrim.Person and org.hibernate.test.propertyref.inheritence.union.Person extend a common superclass
    Type org.hibernate.test.propertyref.inheritence.discrim.Account of variable a does not match with type org.hibernate.test.propertyref.inheritence.union.Account of variable a
    • Make classes org.hibernate.test.propertyref.inheritence.discrim.Account and org.hibernate.test.propertyref.inheritence.union.Account extend a common superclass
    27
    s.delete(a.getPerson());
    28
    t.commit();
    28
    t.commit();
    29
    s.close();
    29
    s.close();
    Precondition Violations (41)
    Row Violation
    1Type org.hibernate.test.propertyref.inheritence.discrim.Customer of variable c does not match with type org.hibernate.test.propertyref.inheritence.union.Customer of variable c
    2Type org.hibernate.test.propertyref.inheritence.discrim.Customer of variable c does not match with type org.hibernate.test.propertyref.inheritence.union.Customer of variable c
    3Type org.hibernate.test.propertyref.inheritence.discrim.Customer of variable c does not match with type org.hibernate.test.propertyref.inheritence.union.Customer of variable c
    4Type org.hibernate.test.propertyref.inheritence.discrim.Customer of variable c does not match with type org.hibernate.test.propertyref.inheritence.union.Customer of variable c
    5Type org.hibernate.test.propertyref.inheritence.discrim.Account of variable a does not match with type org.hibernate.test.propertyref.inheritence.union.Account of variable a
    6Type org.hibernate.test.propertyref.inheritence.discrim.Customer of variable c does not match with type org.hibernate.test.propertyref.inheritence.union.Customer of variable c
    7Type org.hibernate.test.propertyref.inheritence.discrim.Account of variable a does not match with type org.hibernate.test.propertyref.inheritence.union.Account of variable a
    8Type org.hibernate.test.propertyref.inheritence.discrim.Account of variable a does not match with type org.hibernate.test.propertyref.inheritence.union.Account of variable a
    9Type org.hibernate.test.propertyref.inheritence.discrim.Customer of variable c does not match with type org.hibernate.test.propertyref.inheritence.union.Customer of variable c
    10Type org.hibernate.test.propertyref.inheritence.discrim.Account of variable a does not match with type org.hibernate.test.propertyref.inheritence.union.Account of variable a
    11Unmatched statement a=(Account)s.createQuery("from Account acc join fetch acc.customer join fetch acc.person").uniqueResult(); cannot be moved before or after the extracted code, because it has dependencies to/from statements that will be extracted
    12Unmatched statement a=(Account)s.createQuery("from Account acc join fetch acc.customer join fetch acc.person").uniqueResult(); cannot be moved before or after the extracted code, because it has dependencies to/from statements that will be extracted
    13Expression a.getCustomer() cannot be parameterized, because it has dependencies to/from statements that will be extracted
    14Expression a.getCustomer() cannot be parameterized, because it has dependencies to/from statements that will be extracted
    15Type org.hibernate.test.propertyref.inheritence.discrim.Customer of variable a.getCustomer() does not match with type org.hibernate.test.propertyref.inheritence.union.Customer of variable a.getCustomer()
    16Type org.hibernate.test.propertyref.inheritence.discrim.Account of variable a does not match with type org.hibernate.test.propertyref.inheritence.union.Account of variable a
    17Expression a.getCustomer() cannot be parameterized, because it has dependencies to/from statements that will be extracted
    18Expression a.getCustomer() cannot be parameterized, because it has dependencies to/from statements that will be extracted
    19Type org.hibernate.test.propertyref.inheritence.discrim.Customer of variable a.getCustomer() does not match with type org.hibernate.test.propertyref.inheritence.union.Customer of variable a.getCustomer()
    20Type org.hibernate.test.propertyref.inheritence.discrim.Account of variable a does not match with type org.hibernate.test.propertyref.inheritence.union.Account of variable a
    21Expression a.getPerson() cannot be parameterized, because it has dependencies to/from statements that will be extracted
    22Expression a.getPerson() cannot be parameterized, because it has dependencies to/from statements that will be extracted
    23Type org.hibernate.test.propertyref.inheritence.discrim.Person of variable a.getPerson() does not match with type org.hibernate.test.propertyref.inheritence.union.Person of variable a.getPerson()
    24Type org.hibernate.test.propertyref.inheritence.discrim.Account of variable a does not match with type org.hibernate.test.propertyref.inheritence.union.Account of variable a
    25Expression a.getPerson() cannot be parameterized, because it has dependencies to/from statements that will be extracted
    26Expression a.getPerson() cannot be parameterized, because it has dependencies to/from statements that will be extracted
    27Type org.hibernate.test.propertyref.inheritence.discrim.Person of variable a.getPerson() does not match with type org.hibernate.test.propertyref.inheritence.union.Person of variable a.getPerson()
    28Type org.hibernate.test.propertyref.inheritence.discrim.Account of variable a does not match with type org.hibernate.test.propertyref.inheritence.union.Account of variable a
    29Unmatched statement c=(Customer)s.createQuery("from Customer").uniqueResult(); cannot be moved before or after the extracted code, because it has dependencies to/from statements that will be extracted
    30Unmatched statement c=(Customer)s.createQuery("from Customer").uniqueResult(); cannot be moved before or after the extracted code, because it has dependencies to/from statements that will be extracted
    31Type org.hibernate.test.propertyref.inheritence.discrim.Customer of variable c does not match with type org.hibernate.test.propertyref.inheritence.union.Customer of variable c
    32Type org.hibernate.test.propertyref.inheritence.discrim.Customer of variable c does not match with type org.hibernate.test.propertyref.inheritence.union.Customer of variable c
    33Type org.hibernate.test.propertyref.inheritence.discrim.Account of variable a does not match with type org.hibernate.test.propertyref.inheritence.union.Account of variable a
    34Expression a.getCustomer() cannot be parameterized, because it has dependencies to/from statements that will be extracted
    35Expression a.getCustomer() cannot be parameterized, because it has dependencies to/from statements that will be extracted
    36Type org.hibernate.test.propertyref.inheritence.discrim.Customer of variable a.getCustomer() does not match with type org.hibernate.test.propertyref.inheritence.union.Customer of variable a.getCustomer()
    37Type org.hibernate.test.propertyref.inheritence.discrim.Account of variable a does not match with type org.hibernate.test.propertyref.inheritence.union.Account of variable a
    38Expression a.getPerson() cannot be parameterized, because it has dependencies to/from statements that will be extracted
    39Expression a.getPerson() cannot be parameterized, because it has dependencies to/from statements that will be extracted
    40Type org.hibernate.test.propertyref.inheritence.discrim.Person of variable a.getPerson() does not match with type org.hibernate.test.propertyref.inheritence.union.Person of variable a.getPerson()
    41Type org.hibernate.test.propertyref.inheritence.discrim.Account of variable a does not match with type org.hibernate.test.propertyref.inheritence.union.Account of variable a