File path: /hibernate-distribution-3.3.2.GA/project/core/src/main/java/org/hibernate/loader/Loader.java | File path: /hibernate-distribution-3.3.2.GA/project/core/src/main/java/org/hibernate/loader/Loader.java | |||
Method name: void loadCollection(SessionImplementor, Serializable, Type)
|
Method name: void loadCollectionSubselect(SessionImplementor, Serializable[], Object[], Type[], Map, Type)
|
|||
Number of AST nodes: 2 | Number of AST nodes: 2 | |||
1 | try {↵ | 1 | try {↵ | |
2 | doQueryAndInitializeNonLazyCollections( ↵ | 2 | doQueryAndInitializeNonLazyCollections( ↵ | |
3 | session,↵ | 3 | session,↵ | |
4 | new QueryParameters( new Type[]{type}, ids, ids ),↵ | 4 | new QueryParameters( parameterTypes, parameterValues, namedParameters, ids ),↵ | |
5 | true ↵ | 5 | true ↵ | |
6 | );↵ | 6 | );↵ | |
7 | }↵ | 7 | }↵ | |
8 | catch ( SQLException sqle ) {↵ | 8 | catch ( SQLException sqle ) {↵ | |
9 | throw JDBCExceptionHelper.convert(↵ | 9 | throw JDBCExceptionHelper.convert(↵ | |
10 | factory.getSQLExceptionConverter(),↵ | 10 | factory.getSQLExceptionConverter(),↵ | |
11 | sqle,↵ | 11 | sqle,↵ | |
12 | "could not initialize a collection: " + ↵ | 12 | "could not load collection by subselect: " + ↵ | |
13 | MessageHelper.collectionInfoString( getCollectionPersisters()[0], id, getFactory() ),↵ | 13 | MessageHelper.collectionInfoString( getCollectionPersisters()[0], ids, getFactory() ),↵ | |
14 | getSQLString()↵ | 14 | getSQLString()↵ | |
15 | );↵ | 15 | );↵ | |
16 | } | 16 |
| |
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.8 |
Clones location | Clones are declared in the same class |
Number of node comparisons | 4 |
Number of mapped statements | 2 |
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) | 5.1 |
Clone type | Type 2 |
ID | Statement | ID | Statement | ||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
4 | try |
| 3 | try | |||||||||||||||||
5 | doQueryAndInitializeNonLazyCollections(session, new QueryParameters(new Type[] {type}, ids, ids), true); |
| 4 | doQueryAndInitializeNonLazyCollections(session, new QueryParameters(parameterTypes, parameterValues, namedParameters, ids), true); |
Row | Violation |
---|---|
1 | Type java.io.Serializable of variable id does not match with type java.io.Serializable[] of variable ids |