File path: /hibernate-distribution-3.3.2.GA/project/core/src/main/java/org/hibernate/cfg/HbmBinder.java | File path: /hibernate-distribution-3.3.2.GA/project/core/src/main/java/org/hibernate/cfg/HbmBinder.java | |||
Method name: void bindCollectionSecondPass(Element, Collection, java.util.Map, Mappings, java.util.Map)
|
Method name: void bindCollection(Element, Collection, String, String, Mappings, java.util.Map)
|
|||
Number of AST nodes: 3 | Number of AST nodes: 3 | |||
1 | SimpleValue elt = new SimpleValue( collection.getCollectionTable() );↵ | 1 | OneToMany oneToMany = new OneToMany( collection.getOwner() );↵ | |
2 | collection.setElement( elt );↵ | 2 | collection.setElement( oneToMany );↵ | |
3 | bindSimpleValue(↵ | 3 | bind↵ | |
4 | subnode,↵ | |||
5 | elt,↵ | |||
6 | true,↵ | |||
7 | Collection.DEFAULT_ELEMENT_COLUMN_NAME,↵ | |||
8 | mappings↵ | 4 | OneToMany( oneToManyNode, oneToMany, mappings↵ | |
9 | ); | 5 | ); | |
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) | 0.0 |
Clones location | Clones are declared in the same class |
Number of node comparisons | 7 |
Number of mapped statements | 2 |
Number of unmapped statements in the first code fragment | 1 |
Number of unmapped statements in the second code fragment | 1 |
Time elapsed for statement mapping (ms) | 0.0 |
Clone type | Type 2 |
ID | Statement | ID | Statement | ||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
32 | SimpleValue elt = new SimpleValue(collection.getCollectionTable()); |
| | ||||||||||||||||||
| 49 | OneToMany oneToMany = new OneToMany(collection.getOwner()); | |||||||||||||||||||
33 | collection.setElement(elt); |
| 50 | collection.setElement(oneToMany); | |||||||||||||||||
34 | bindSimpleValue(subnode, elt, true, Collection.DEFAULT_ELEMENT_COLUMN_NAME, mappings); |
| 51 | bindOneToMany(oneToManyNode, oneToMany, mappings); |
Row | Violation |
---|---|
1 | Unmatched statement SimpleValue elt=new SimpleValue(collection.getCollectionTable()); cannot be moved before or after the extracted code, because it has dependencies to/from statements that will be extracted |
2 | Type org.hibernate.mapping.SimpleValue of variable elt does not match with type org.hibernate.mapping.OneToMany of variable oneToMany |
3 | Expression bindSimpleValue(subnode,elt,true,Collection.DEFAULT_ELEMENT_COLUMN_NAME,mappings) is a void method call, and thus it cannot be parameterized |
4 | Expression bindOneToMany(oneToManyNode,oneToMany,mappings) is a void method call, and thus it cannot be parameterized |
5 | Expression bindSimpleValue(subnode,elt,true,Collection.DEFAULT_ELEMENT_COLUMN_NAME,mappings) is a void method call, and thus it cannot be parameterized |
6 | Expression bindOneToMany(oneToManyNode,oneToMany,mappings) is a void method call, and thus it cannot be parameterized |