File path: /hibernate-distribution-3.3.2.GA/project/core/src/main/java/org/hibernate/engine/ActionQueue.java | File path: /hibernate-distribution-3.3.2.GA/project/testsuite/src/test/java/org/hibernate/test/legacy/FumTest.java | |||
Method name: String toString()
|
Method name: void testCriteria()
|
|||
Number of AST nodes: 1 | Number of AST nodes: 2 | |||
1 | return new StringBuffer()↵ | |||
2 | .append( "ActionQueue[insertions=" ).append( insertions )↵ | |||
3 | .append( " updates=" ).append( updates ↵ | 1 | list = s.createCriteria(Fum.class)↵ | |
2 | .createAlias("friends", "fr")↵ | |||
4 | )↵ | 3 | .createAlias("fo", "fo")↵ | |
5 | .append( " deletions=" ).append( deletions )↵ | 4 | .add( Restrictions.like("fum", "f%") )↵ | |
6 | .append( " collectionCreations=" ).append( collectionCreations )↵ | 5 | .add( Restrictions.isNotNull("fo") )↵ | |
7 | .append( " collectionRemovals=" ).append( collectionRemovals↵ | 6 | .add( Restrictions.isNotNull("fo.fum") )↵ | |
8 | )↵ | 7 | .add( Restrictions.like("fr.fum", "g%") )↵ | |
9 | .append( " collectionUpdates=" ).append( collectionUpdates )↵ | 8 | .a↵ | |
10 | .append( "]" )↵ | |||
11 | .toString(↵ | 9 | dd( Restrictions.eqProperty("fr.id.short", "id.short") )↵ | |
10 | .list();↵ | |||
12 | ); | 11 | assertTrue( list.size()==1 && list.get(0)==fum ); | |
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 in different classes |
Number of node comparisons | 2 |
Number of mapped statements | 0 |
Number of unmapped statements in the first code fragment | 0 |
Number of unmapped statements in the second code fragment | 0 |
Time elapsed for statement mapping (ms) | 0.0 |
Clone type | Unknown type |
ID | Statement | ID | Statement |
---|
Row | Violation |
---|