File path: /hibernate-distribution-3.3.2.GA/project/testsuite/src/test/java/org/hibernate/test/cuk/CompositePropertyRefTest.java | File path: /hibernate-distribution-3.3.2.GA/project/testsuite/src/test/java/org/hibernate/test/propertyref/basic/PropertyRefTest.java | |||
Method name: void testOneToOnePropertyRef()
|
Method name: void testOneToOnePropertyRef()
|
|||
Number of AST nodes: 69 | Number of AST nodes: 68 | |||
1 | Session s = openSession();↵ | 1 | Session s = openSession(); ↵ | |
2 | Transaction t = s.beginTransaction();↵ | 2 | Transaction t = s.beginTransaction(); ↵ | |
3 | Person p = new Person();↵ | 3 | Person p = new Person(); ↵ | |
4 | p.setName("Steve");↵ | 4 | p.setName("Steve"); ↵ | |
5 | p.setUserId("steve");↵ | 5 | p.setUserId("steve"); ↵ | |
6 | Address a = new Address();↵ | 6 | Address a = new Address(); ↵ | |
7 | a.setAddress("Texas");↵ | 7 | a.setAddress("Texas"); ↵ | |
8 | a.setCountry("USA");↵ | 8 | a.setCountry("USA"); ↵ | |
9 | p.setAddress(a);↵ | 9 | p.setAddress(a); ↵ | |
10 | a.setPerson(p);↵ | 10 | a.setPerson(p); ↵ | |
11 | s.save(p);↵ | 11 | s.save(p); ↵ | |
12 | Person p2 = new Person();↵ | 12 | Person p2 = new Person(); ↵ | |
13 | p2.setName("Max");↵ | 13 | p2.setName("Max"); ↵ | |
14 | p2.setUserId("max");↵ | 14 | p2.setUserId("max"); ↵ | |
15 | s.save(p2);↵ | 15 | s.save(p2); ↵ | |
16 | Account act = new Account();↵ | 16 | Account act = new Account(); ↵ | |
17 | act.setType('c');↵ | 17 | act.setType('c'); ↵ | |
18 | act.setUser(p2);↵ | 18 | act.setUser(p2); ↵ | |
19 | p2.getAccounts().add(act);↵ | 19 | p2.getAccounts().add(act); ↵ | |
20 | s.save(act);↵ | 20 | s.save(act); ↵ | |
21 | s.flush();↵ | 21 | s.flush(); ↵ | |
22 | s.clear();↵ | 22 | s.clear(); ↵ | |
23 | ↵ | 23 | ↵ | |
24 | p = (Person) s.get( Person.class, p.getId() ); //get address reference by outer join↵ | 24 | p = (Person) s.get( Person.class, p.getId() ); //get address reference by outer join ↵ | |
25 | p2 = (Person) s.get( Person.class, p2.getId() ); //get null address reference by outer join↵ | 25 | p2 = (Person) s.get( Person.class, p2.getId() ); //get null address reference by outer join ↵ | |
26 | assertNull( p2.getAddress() );↵ | 26 | assertNull( p2.getAddress() ); ↵ | |
27 | assertNotNull( p.getAddress() );↵ | 27 | assertNotNull( p.getAddress() ); ↵ | |
28 | List l = s.createQuery("from Person").list(); //pull address references for cache↵ | 28 | List l = s.createQuery("from Person").list(); //pull address references for cache ↵ | |
29 | assertEquals( l.size(), 2 );↵ | 29 | assertEquals( l.size(), 2 ); ↵ | |
30 | assertTrue( l.contains(p) && l.contains(p2) );↵ | 30 | assertTrue( l.contains(p) && l.contains(p2) ); ↵ | |
31 | s.clear();↵ | 31 | s.clear(); ↵ | |
32 | ↵ | 32 | ↵ | |
33 | l = s.createQuery("from Person p order by p.name").list(); //get address references by sequential selects↵ | 33 | l = s.createQuery("from Person p order by p.name").list(); //get address references by sequential selects ↵ | |
34 | assertEquals( l.size(), 2 );↵ | 34 | assertEquals( l.size(), 2 ); ↵ | |
35 | assertNull( ( (Person) l.get(0) ).getAddress() );↵ | 35 | assertNull( ( (Person) l.get(0) ).getAddress() ); ↵ | |
36 | assertNotNull( ( (Person) l.get(1) ).getAddress() );↵ | 36 | assertNotNull( ( (Person) l.get(1) ).getAddress() ); ↵ | |
37 | s.clear();↵ | 37 | s.clear(); ↵ | |
38 | ↵ | 38 | ↵ | |
39 | l = s.createQuery("from Person p left join fetch p.address a order by a.country").list(); //get em by outer join↵ | 39 | l = s.createQuery("from Person p left join fetch p.address a order by a.country").list(); //get em by outer join ↵ | |
40 | assertEquals( l.size(), 2 );↵ | 40 | assertEquals( l.size(), 2 ); ↵ | |
41 | if ( ( (Person) l.get(0) ).getName().equals("Max") ) {↵ | 41 | if ( ( (Person) l.get(0) ).getName().equals("Max") ) { ↵ | |
42 | assertNull( ( (Person) l.get(0) ).getAddress() );↵ | 42 | assertNull( ( (Person) l.get(0) ).getAddress() ); ↵ | |
43 | assertNotNull( ( (Person) l.get(1) ).getAddress() );↵ | 43 | assertNotNull( ( (Person) l.get(1) ).getAddress() ); ↵ | |
44 | }↵ | 44 | } ↵ | |
45 | else {↵ | 45 | else { ↵ | |
46 | assertNull( ( (Person) l.get(1) ).getAddress() );↵ | 46 | assertNull( ( (Person) l.get(1) ).getAddress() ); ↵ | |
47 | assertNotNull( ( (Person) l.get(0) ).getAddress() );↵ | 47 | assertNotNull( ( (Person) l.get(0) ).getAddress() ); ↵ | |
48 | }↵ | 48 | } ↵ | |
49 | s.clear();↵ | 49 | s.clear(); ↵ | |
50 | ↵ | 50 | ↵ | |
51 | l = s.createQuery("from Person p left join p.accounts").list();↵ | 51 | l = s.createQuery("from Person p left join p.accounts a").list(); ↵ | |
52 | for ( int i=0; i<2; i++ ) {↵ | 52 | for ( int i=0; i<2; i++ ) { ↵ | |
53 | Object[] row = (Object[]) l.get(i);↵ | 53 | Object[] row = (Object[]) l.get(i); ↵ | |
54 | Person px = (Person) row[0];↵ | 54 | Person px = (Person) row[0];↵ | |
55 | Set accounts = px.getAccounts();↵ | 55 | ↵ | |
56 | assertFalse( Hibernate.isInitialized(accounts) );↵ | 56 | assertFalse( Hibernate.isInitialized( px.getAccounts() ) ); ↵ | |
57 | assertTrue( px.getAccounts().size()>0 || row[1]==null );↵ | 57 | assertTrue( px.getAccounts().size()>0 || row[1]==null ); ↵ | |
58 | }↵ | 58 | } ↵ | |
59 | s.clear();↵ | 59 | s.clear();↵ | |
60 | ↵ | |||
60 | l = s.createQuery("from Person p left join fetch p.accounts a order by p.name").list();↵ | 61 | l = s.createQuery("from Person p left join fetch p.accounts a order by p.name").list(); ↵ | |
61 | Person p0 = (Person) l.get(0);↵ | 62 | Person p0 = (Person) l.get(0); ↵ | |
62 | assertTrue( Hibernate.isInitialized( p0.getAccounts() ) );↵ | 63 | assertTrue( Hibernate.isInitialized( p0.getAccounts() ) ); ↵ | |
63 | assertEquals( p0.getAccounts().size(), 1 );↵ | 64 | assertEquals( p0.getAccounts().size(), 1 ); ↵ | |
64 | assertSame( ( (Account) p0.getAccounts().iterator().next() ).getUser(), p0 );↵ | 65 | assertSame( ( (Account) p0.getAccounts().iterator().next() ).getUser(), p0 ); ↵ | |
65 | Person p1 = (Person) l.get(1);↵ | 66 | Person p1 = (Person) l.get(1); ↵ | |
66 | assertTrue( Hibernate.isInitialized( p1.getAccounts() ) );↵ | 67 | assertTrue( Hibernate.isInitialized( p1.getAccounts() ) ); ↵ | |
67 | assertEquals( p1.getAccounts().size(), 0 );↵ | 68 | assertEquals( p1.getAccounts().size(), 0 ); ↵ | |
68 | s.clear();↵ | 69 | s.clear(); ↵ | |
69 | ↵ | 70 | ↵ | |
70 | l = s.createQuery("from Account a join fetch a.user").list();↵ | 71 | Account acc = (Account) s.createQuery("from Account a left join fetch a.user").uniqueResult();↵ | |
71 | ↵ | |||
72 | s.clear(↵ | |||
73 | );↵ | 72 | assertTrue( Hibernate.isInitialized(acc.getUser()) ); ↵ | |
74 | ↵ | 73 | ↵ | |
75 | l = s.createQuery("from Person p left join fetch p.address").list(↵ | 74 | assertNotNull(acc.getUser());↵ | |
76 | );↵ | 75 | assertTrue( acc.getUser().getAccounts().contains(acc) ); ↵ | |
77 | ↵ | 76 | ↵ | |
78 | s.clear();↵ | 77 | ↵ | |
79 | s.createQuery( "delete Address" ).executeUpdate();↵ | 78 | s.createQuery("delete from Address").executeUpdate(); ↵ | |
80 | s.createQuery( "delete Account" ).executeUpdate();↵ | 79 | s.createQuery("delete from Account").executeUpdate(); // to not break constraint violation between Person and Account ↵ | |
81 | s.createQuery( "delete Person" ).executeUpdate();↵ | 80 | s.createQuery("delete from Person").executeUpdate();↵ | |
81 | ↵ | |||
82 | t.commit();↵ | 82 | t.commit(); ↵ | |
83 | s.close(); | 83 |
| |
See real code fragment | See real code fragment |
Number of common nesting structure subtrees | 1 |
Number of refactorable cases | 0 |
Number of non-refactorable cases | 1 |
Time elapsed for finding largest common nesting structure subtrees (ms) | 5.7 |
Clones location | Clones are in different classes having the same super class |
Number of node comparisons | 1605 |
Number of mapped statements | 55 |
Number of unmapped statements in the first code fragment | 14 |
Number of unmapped statements in the second code fragment | 13 |
Time elapsed for statement mapping (ms) | 259.1 |
Clone type | Type 3 |
ID | Statement | ID | Statement | ||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1 | Session s = openSession(); | 1 | Session s = openSession(); | ||||||||||||||||||||||||||||
2 | Transaction t = s.beginTransaction(); | 2 | Transaction t = s.beginTransaction(); | ||||||||||||||||||||||||||||
| 3 | Person p = new Person(); | |||||||||||||||||||||||||||||
3 | Person p = new Person(); | | |||||||||||||||||||||||||||||
4 | p.setName("Steve"); |
| 4 | p.setName("Steve"); | |||||||||||||||||||||||||||
5 | p.setUserId("steve"); |
| 5 | p.setUserId("steve"); | |||||||||||||||||||||||||||
| 6 | Address a = new Address(); | |||||||||||||||||||||||||||||
6 | Address a = new Address(); | | |||||||||||||||||||||||||||||
7 | a.setAddress("Texas"); |
| 7 | a.setAddress("Texas"); | |||||||||||||||||||||||||||
8 | a.setCountry("USA"); |
| 8 | a.setCountry("USA"); | |||||||||||||||||||||||||||
9 | p.setAddress(a); |
| 9 | p.setAddress(a); | |||||||||||||||||||||||||||
10 | a.setPerson(p); |
| 10 | a.setPerson(p); | |||||||||||||||||||||||||||
11 | s.save(p); |
| 11 | s.save(p); | |||||||||||||||||||||||||||
| 12 | Person p2 = new Person(); | |||||||||||||||||||||||||||||
12 | Person p2 = new Person(); | | |||||||||||||||||||||||||||||
13 | p2.setName("Max"); |
| 13 | p2.setName("Max"); | |||||||||||||||||||||||||||
14 | p2.setUserId("max"); |
| 14 | p2.setUserId("max"); | |||||||||||||||||||||||||||
15 | s.save(p2); |
| 15 | s.save(p2); | |||||||||||||||||||||||||||
| 16 | Account act = new Account(); | |||||||||||||||||||||||||||||
16 | Account act = new Account(); | | |||||||||||||||||||||||||||||
17 | act.setType('c'); |
| 17 | act.setType('c'); | |||||||||||||||||||||||||||
18 | act.setUser(p2); |
| 18 | act.setUser(p2); | |||||||||||||||||||||||||||
19 | p2.getAccounts().add(act); |
| 19 | p2.getAccounts().add(act); | |||||||||||||||||||||||||||
20 | s.save(act); |
| 20 | s.save(act); | |||||||||||||||||||||||||||
21 | s.flush(); | 21 | s.flush(); | ||||||||||||||||||||||||||||
22 | s.clear(); | 22 | s.clear(); | ||||||||||||||||||||||||||||
|
| 23 | p = (Person)s.get(Person.class, p.getId()); | ||||||||||||||||||||||||||||
23 | p = (Person)s.get(Person.class, p.getId()); |
| | ||||||||||||||||||||||||||||
|
| 24 | p2 = (Person)s.get(Person.class, p2.getId()); | ||||||||||||||||||||||||||||
24 | p2 = (Person)s.get(Person.class, p2.getId()); |
| | ||||||||||||||||||||||||||||
25 | assertNull(p2.getAddress()); |
| 25 | assertNull(p2.getAddress()); | |||||||||||||||||||||||||||
26 | assertNotNull(p.getAddress()); |
| 26 | assertNotNull(p.getAddress()); | |||||||||||||||||||||||||||
27 | List l = s.createQuery("from Person").list(); | 27 | List l = s.createQuery("from Person").list(); | ||||||||||||||||||||||||||||
28 | assertEquals(l.size(), 2); | 28 | assertEquals(l.size(), 2); | ||||||||||||||||||||||||||||
29 | assertTrue(l.contains(p) && l.contains(p2)); |
| 29 | assertTrue(l.contains(p) && l.contains(p2)); | |||||||||||||||||||||||||||
30 | s.clear(); | 30 | s.clear(); | ||||||||||||||||||||||||||||
31 | l = s.createQuery("from Person p order by p.name").list(); | 31 | l = s.createQuery("from Person p order by p.name").list(); | ||||||||||||||||||||||||||||
32 | assertEquals(l.size(), 2); | 32 | assertEquals(l.size(), 2); | ||||||||||||||||||||||||||||
33 | assertNull(((Person)l.get(0)).getAddress()); |
| 33 | assertNull(((Person)l.get(0)).getAddress()); | |||||||||||||||||||||||||||
34 | assertNotNull(((Person)l.get(1)).getAddress()); |
| 34 | assertNotNull(((Person)l.get(1)).getAddress()); | |||||||||||||||||||||||||||
35 | s.clear(); | 35 | s.clear(); | ||||||||||||||||||||||||||||
36 | l = s.createQuery("from Person p left join fetch p.address a order by a.country").list(); | 36 | l = s.createQuery("from Person p left join fetch p.address a order by a.country").list(); | ||||||||||||||||||||||||||||
37 | assertEquals(l.size(), 2); | 37 | assertEquals(l.size(), 2); | ||||||||||||||||||||||||||||
38 | if (((Person)l.get(0)).getName().equals("Max")) |
| 38 | if (((Person)l.get(0)).getName().equals("Max")) | |||||||||||||||||||||||||||
39 | assertNull(((Person)l.get(0)).getAddress()); |
| 39 | assertNull(((Person)l.get(0)).getAddress()); | |||||||||||||||||||||||||||
40 | assertNotNull(((Person)l.get(1)).getAddress()); |
| 40 | assertNotNull(((Person)l.get(1)).getAddress()); | |||||||||||||||||||||||||||
else | else | ||||||||||||||||||||||||||||||
41 | assertNull(((Person)l.get(1)).getAddress()); |
| 41 | assertNull(((Person)l.get(1)).getAddress()); | |||||||||||||||||||||||||||
42 | assertNotNull(((Person)l.get(0)).getAddress()); |
| 42 | assertNotNull(((Person)l.get(0)).getAddress()); | |||||||||||||||||||||||||||
43 | s.clear(); | 43 | s.clear(); | ||||||||||||||||||||||||||||
44 | l = s.createQuery("from Person p left join p.accounts").list(); |
| 44 | l = s.createQuery("from Person p left join p.accounts a").list(); | |||||||||||||||||||||||||||
45 | for (int i = 0; i < 2; i++) | 45 | for (int i = 0; i < 2; i++) | ||||||||||||||||||||||||||||
46 | Object[] row = (Object[])l.get(i); | 46 | Object[] row = (Object[])l.get(i); | ||||||||||||||||||||||||||||
|
| 47 | Person px = (Person)row[0]; | ||||||||||||||||||||||||||||
47 | Person px = (Person)row[0]; |
| | ||||||||||||||||||||||||||||
48 | Set accounts = px.getAccounts(); |
| | ||||||||||||||||||||||||||||
49 | assertFalse(Hibernate.isInitialized(accounts)); |
| 48 | assertFalse(Hibernate.isInitialized(px.getAccounts())); | |||||||||||||||||||||||||||
50 | assertTrue(px.getAccounts().size() > 0 || row[1] == null); |
| 49 | assertTrue(px.getAccounts().size() > 0 || row[1] == null); | |||||||||||||||||||||||||||
51 | s.clear(); | 50 | s.clear(); | ||||||||||||||||||||||||||||
52 | l = s.createQuery("from Person p left join fetch p.accounts a order by p.name").list(); | 51 | l = s.createQuery("from Person p left join fetch p.accounts a order by p.name").list(); | ||||||||||||||||||||||||||||
|
| 52 | Person p0 = (Person)l.get(0); | ||||||||||||||||||||||||||||
53 | Person p0 = (Person)l.get(0); |
| | ||||||||||||||||||||||||||||
54 | assertTrue(Hibernate.isInitialized(p0.getAccounts())); |
| 53 | assertTrue(Hibernate.isInitialized(p0.getAccounts())); | |||||||||||||||||||||||||||
55 | assertEquals(p0.getAccounts().size(), 1); |
| 54 | assertEquals(p0.getAccounts().size(), 1); | |||||||||||||||||||||||||||
56 | assertSame(((Account)p0.getAccounts().iterator().next()).getUser(), p0); |
| 55 | assertSame(((Account)p0.getAccounts().iterator().next()).getUser(), p0); | |||||||||||||||||||||||||||
|
| 56 | Person p1 = (Person)l.get(1); | ||||||||||||||||||||||||||||
57 | Person p1 = (Person)l.get(1); |
| | ||||||||||||||||||||||||||||
58 | assertTrue(Hibernate.isInitialized(p1.getAccounts())); |
| 57 | assertTrue(Hibernate.isInitialized(p1.getAccounts())); | |||||||||||||||||||||||||||
59 | assertEquals(p1.getAccounts().size(), 0); |
| 58 | assertEquals(p1.getAccounts().size(), 0); | |||||||||||||||||||||||||||
60 | s.clear(); | 59 | s.clear(); | ||||||||||||||||||||||||||||
|
| 60 | Account acc = (Account)s.createQuery("from Account a left join fetch a.user").uniqueResult(); | ||||||||||||||||||||||||||||
| 61 | assertTrue(Hibernate.isInitialized(acc.getUser())); | |||||||||||||||||||||||||||||
61 | l = s.createQuery("from Account a join fetch a.user").list(); |
| | ||||||||||||||||||||||||||||
| 62 | assertNotNull(acc.getUser()); | |||||||||||||||||||||||||||||
62 | s.clear(); |
| | ||||||||||||||||||||||||||||
| 63 | assertTrue(acc.getUser().getAccounts().contains(acc)); | |||||||||||||||||||||||||||||
63 | l = s.createQuery("from Person p left join fetch p.address").list(); |
| | ||||||||||||||||||||||||||||
64 | s.clear(); |
| | ||||||||||||||||||||||||||||
65 | s.createQuery("delete Address").executeUpdate(); |
| 64 | s.createQuery("delete from Address").executeUpdate(); | |||||||||||||||||||||||||||
66 | s.createQuery("delete Account").executeUpdate(); |
| 65 | s.createQuery("delete from Account").executeUpdate(); | |||||||||||||||||||||||||||
67 | s.createQuery("delete Person").executeUpdate(); |
| 66 | s.createQuery("delete from Person").executeUpdate(); | |||||||||||||||||||||||||||
68 | t.commit(); | 67 | t.commit(); | ||||||||||||||||||||||||||||
69 | s.close(); | 68 | s.close(); |
Row | Violation |
---|---|
1 | Type org.hibernate.test.cuk.Person of variable p does not match with type org.hibernate.test.propertyref.basic.Person of variable p |
2 | Type org.hibernate.test.cuk.Person of variable p does not match with type org.hibernate.test.propertyref.basic.Person of variable p |
3 | Type org.hibernate.test.cuk.Address of variable a does not match with type org.hibernate.test.propertyref.basic.Address of variable a |
4 | Type org.hibernate.test.cuk.Address of variable a does not match with type org.hibernate.test.propertyref.basic.Address of variable a |
5 | Type org.hibernate.test.cuk.Address of variable a does not match with type org.hibernate.test.propertyref.basic.Address of variable a |
6 | Type org.hibernate.test.cuk.Person of variable p does not match with type org.hibernate.test.propertyref.basic.Person of variable p |
7 | Type org.hibernate.test.cuk.Person of variable p does not match with type org.hibernate.test.propertyref.basic.Person of variable p |
8 | Type org.hibernate.test.cuk.Address of variable a does not match with type org.hibernate.test.propertyref.basic.Address of variable a |
9 | Type org.hibernate.test.cuk.Person of variable p does not match with type org.hibernate.test.propertyref.basic.Person of variable p |
10 | Type org.hibernate.test.cuk.Person of variable p2 does not match with type org.hibernate.test.propertyref.basic.Person of variable p2 |
11 | Type org.hibernate.test.cuk.Person of variable p2 does not match with type org.hibernate.test.propertyref.basic.Person of variable p2 |
12 | Type org.hibernate.test.cuk.Person of variable p2 does not match with type org.hibernate.test.propertyref.basic.Person of variable p2 |
13 | Type org.hibernate.test.cuk.Account of variable act does not match with type org.hibernate.test.propertyref.basic.Account of variable act |
14 | Type org.hibernate.test.cuk.Person of variable p2 does not match with type org.hibernate.test.propertyref.basic.Person of variable p2 |
15 | Type org.hibernate.test.cuk.Account of variable act does not match with type org.hibernate.test.propertyref.basic.Account of variable act |
16 | Type org.hibernate.test.cuk.Account of variable act does not match with type org.hibernate.test.propertyref.basic.Account of variable act |
17 | Type org.hibernate.test.cuk.Person of variable p2 does not match with type org.hibernate.test.propertyref.basic.Person of variable p2 |
18 | Type org.hibernate.test.cuk.Account of variable act does not match with type org.hibernate.test.propertyref.basic.Account of variable act |
19 | Unmatched statement p=(Person)s.get(Person.class,p.getId()); cannot be moved before or after the extracted code, because it has dependencies to/from statements that will be extracted |
20 | Unmatched statement p=(Person)s.get(Person.class,p.getId()); cannot be moved before or after the extracted code, because it has dependencies to/from statements that will be extracted |
21 | Unmatched statement p2=(Person)s.get(Person.class,p2.getId()); cannot be moved before or after the extracted code, because it has dependencies to/from statements that will be extracted |
22 | Unmatched statement p2=(Person)s.get(Person.class,p2.getId()); cannot be moved before or after the extracted code, because it has dependencies to/from statements that will be extracted |
23 | Expression p2.getAddress() cannot be parameterized, because it has dependencies to/from statements that will be extracted |
24 | Expression p2.getAddress() cannot be parameterized, because it has dependencies to/from statements that will be extracted |
25 | Type org.hibernate.test.cuk.Address of variable p2.getAddress() does not match with type org.hibernate.test.propertyref.basic.Address of variable p2.getAddress() |
26 | Type org.hibernate.test.cuk.Person of variable p2 does not match with type org.hibernate.test.propertyref.basic.Person of variable p2 |
27 | Expression p.getAddress() cannot be parameterized, because it has dependencies to/from statements that will be extracted |
28 | Expression p.getAddress() cannot be parameterized, because it has dependencies to/from statements that will be extracted |
29 | Type org.hibernate.test.cuk.Address of variable p.getAddress() does not match with type org.hibernate.test.propertyref.basic.Address of variable p.getAddress() |
30 | Type org.hibernate.test.cuk.Person of variable p does not match with type org.hibernate.test.propertyref.basic.Person of variable p |
31 | Type org.hibernate.test.cuk.Person of variable p does not match with type org.hibernate.test.propertyref.basic.Person of variable p |
32 | Type org.hibernate.test.cuk.Person of variable p2 does not match with type org.hibernate.test.propertyref.basic.Person of variable p2 |
33 | Expression ((Person)l.get(0)).getAddress() cannot be parameterized, because it has dependencies to/from statements that will be extracted |
34 | Expression ((Person)l.get(0)).getAddress() cannot be parameterized, because it has dependencies to/from statements that will be extracted |
35 | Type org.hibernate.test.cuk.Address of variable ((Person)l.get(0)).getAddress() does not match with type org.hibernate.test.propertyref.basic.Address of variable ((Person)l.get(0)).getAddress() |
36 | Expression (Person)l.get(0) cannot be parameterized, because it has dependencies to/from statements that will be extracted |
37 | Expression (Person)l.get(0) cannot be parameterized, because it has dependencies to/from statements that will be extracted |
38 | Type org.hibernate.test.cuk.Person does not match with type org.hibernate.test.propertyref.basic.Person |
39 | Expression ((Person)l.get(1)).getAddress() cannot be parameterized, because it has dependencies to/from statements that will be extracted |
40 | Expression ((Person)l.get(1)).getAddress() cannot be parameterized, because it has dependencies to/from statements that will be extracted |
41 | Type org.hibernate.test.cuk.Address of variable ((Person)l.get(1)).getAddress() does not match with type org.hibernate.test.propertyref.basic.Address of variable ((Person)l.get(1)).getAddress() |
42 | Expression (Person)l.get(1) cannot be parameterized, because it has dependencies to/from statements that will be extracted |
43 | Expression (Person)l.get(1) cannot be parameterized, because it has dependencies to/from statements that will be extracted |
44 | Type org.hibernate.test.cuk.Person does not match with type org.hibernate.test.propertyref.basic.Person |
45 | Expression (Person)l.get(0) cannot be parameterized, because it has dependencies to/from statements that will be extracted |
46 | Expression (Person)l.get(0) cannot be parameterized, because it has dependencies to/from statements that will be extracted |
47 | Type org.hibernate.test.cuk.Person does not match with type org.hibernate.test.propertyref.basic.Person |
48 | Expression ((Person)l.get(0)).getAddress() cannot be parameterized, because it has dependencies to/from statements that will be extracted |
49 | Expression ((Person)l.get(0)).getAddress() cannot be parameterized, because it has dependencies to/from statements that will be extracted |
50 | Type org.hibernate.test.cuk.Address of variable ((Person)l.get(0)).getAddress() does not match with type org.hibernate.test.propertyref.basic.Address of variable ((Person)l.get(0)).getAddress() |
51 | Expression (Person)l.get(0) cannot be parameterized, because it has dependencies to/from statements that will be extracted |
52 | Expression (Person)l.get(0) cannot be parameterized, because it has dependencies to/from statements that will be extracted |
53 | Type org.hibernate.test.cuk.Person does not match with type org.hibernate.test.propertyref.basic.Person |
54 | Expression ((Person)l.get(1)).getAddress() cannot be parameterized, because it has dependencies to/from statements that will be extracted |
55 | Expression ((Person)l.get(1)).getAddress() cannot be parameterized, because it has dependencies to/from statements that will be extracted |
56 | Type org.hibernate.test.cuk.Address of variable ((Person)l.get(1)).getAddress() does not match with type org.hibernate.test.propertyref.basic.Address of variable ((Person)l.get(1)).getAddress() |
57 | Expression (Person)l.get(1) cannot be parameterized, because it has dependencies to/from statements that will be extracted |
58 | Expression (Person)l.get(1) cannot be parameterized, because it has dependencies to/from statements that will be extracted |
59 | Type org.hibernate.test.cuk.Person does not match with type org.hibernate.test.propertyref.basic.Person |
60 | Expression ((Person)l.get(1)).getAddress() cannot be parameterized, because it has dependencies to/from statements that will be extracted |
61 | Expression ((Person)l.get(1)).getAddress() cannot be parameterized, because it has dependencies to/from statements that will be extracted |
62 | Type org.hibernate.test.cuk.Address of variable ((Person)l.get(1)).getAddress() does not match with type org.hibernate.test.propertyref.basic.Address of variable ((Person)l.get(1)).getAddress() |
63 | Expression (Person)l.get(1) cannot be parameterized, because it has dependencies to/from statements that will be extracted |
64 | Expression (Person)l.get(1) cannot be parameterized, because it has dependencies to/from statements that will be extracted |
65 | Type org.hibernate.test.cuk.Person does not match with type org.hibernate.test.propertyref.basic.Person |
66 | Expression ((Person)l.get(0)).getAddress() cannot be parameterized, because it has dependencies to/from statements that will be extracted |
67 | Expression ((Person)l.get(0)).getAddress() cannot be parameterized, because it has dependencies to/from statements that will be extracted |
68 | Type org.hibernate.test.cuk.Address of variable ((Person)l.get(0)).getAddress() does not match with type org.hibernate.test.propertyref.basic.Address of variable ((Person)l.get(0)).getAddress() |
69 | Expression (Person)l.get(0) cannot be parameterized, because it has dependencies to/from statements that will be extracted |
70 | Expression (Person)l.get(0) cannot be parameterized, because it has dependencies to/from statements that will be extracted |
71 | Type org.hibernate.test.cuk.Person does not match with type org.hibernate.test.propertyref.basic.Person |
72 | Unmatched statement Person px=(Person)row[0]; cannot be moved before or after the extracted code, because it has dependencies to/from statements that will be extracted |
73 | Unmatched statement Person px=(Person)row[0]; cannot be moved before or after the extracted code, because it has dependencies to/from statements that will be extracted |
74 | Unmatched statement Set accounts=px.getAccounts(); cannot be moved before or after the extracted code, because it has dependencies to/from statements that will be extracted |
75 | Expression accounts cannot be parameterized, because it has dependencies to/from statements that will be extracted |
76 | Expression px.getAccounts() cannot be parameterized, because it has dependencies to/from statements that will be extracted |
77 | Type org.hibernate.test.cuk.Person of variable px does not match with type org.hibernate.test.propertyref.basic.Person of variable px |
78 | Unmatched statement Person p0=(Person)l.get(0); cannot be moved before or after the extracted code, because it has dependencies to/from statements that will be extracted |
79 | Unmatched statement Person p0=(Person)l.get(0); cannot be moved before or after the extracted code, because it has dependencies to/from statements that will be extracted |
80 | Type org.hibernate.test.cuk.Person of variable p0 does not match with type org.hibernate.test.propertyref.basic.Person of variable p0 |
81 | Type org.hibernate.test.cuk.Person of variable p0 does not match with type org.hibernate.test.propertyref.basic.Person of variable p0 |
82 | Expression ((Account)p0.getAccounts().iterator().next()).getUser() cannot be parameterized, because it has dependencies to/from statements that will be extracted |
83 | Expression ((Account)p0.getAccounts().iterator().next()).getUser() cannot be parameterized, because it has dependencies to/from statements that will be extracted |
84 | Type org.hibernate.test.cuk.Person of variable ((Account)p0.getAccounts().iterator().next()).getUser() does not match with type org.hibernate.test.propertyref.basic.Person of variable ((Account)p0.getAccounts().iterator().next()).getUser() |
85 | Expression (Account)p0.getAccounts().iterator().next() cannot be parameterized, because it has dependencies to/from statements that will be extracted |
86 | Expression (Account)p0.getAccounts().iterator().next() cannot be parameterized, because it has dependencies to/from statements that will be extracted |
87 | Type org.hibernate.test.cuk.Account does not match with type org.hibernate.test.propertyref.basic.Account |
88 | Type org.hibernate.test.cuk.Person of variable p0 does not match with type org.hibernate.test.propertyref.basic.Person of variable p0 |
89 | Type org.hibernate.test.cuk.Person of variable p0 does not match with type org.hibernate.test.propertyref.basic.Person of variable p0 |
90 | Unmatched statement Person p1=(Person)l.get(1); cannot be moved before or after the extracted code, because it has dependencies to/from statements that will be extracted |
91 | Unmatched statement Person p1=(Person)l.get(1); cannot be moved before or after the extracted code, because it has dependencies to/from statements that will be extracted |
92 | Type org.hibernate.test.cuk.Person of variable p1 does not match with type org.hibernate.test.propertyref.basic.Person of variable p1 |
93 | Type org.hibernate.test.cuk.Person of variable p1 does not match with type org.hibernate.test.propertyref.basic.Person of variable p1 |
94 | Unmatched statement Account acc=(Account)s.createQuery("from Account a left join fetch a.user").uniqueResult(); cannot be moved before or after the extracted code, because it has dependencies to/from statements that will be extracted |
95 | Unmatched statement l=s.createQuery("from Account a join fetch a.user").list(); cannot be moved before or after the extracted code, because it has dependencies to/from statements that will be extracted |
96 | Unmatched statement s.clear(); cannot be moved before or after the extracted code, because it has dependencies to/from statements that will be extracted |
97 | Unmatched statement l=s.createQuery("from Person p left join fetch p.address").list(); cannot be moved before or after the extracted code, because it has dependencies to/from statements that will be extracted |
98 | Unmatched statement s.clear(); cannot be moved before or after the extracted code, because it has dependencies to/from statements that will be extracted |