Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
3 | 2 | 2 | 0.955 | statement_list[2] |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 3 | 136 | src/NHibernate/Event/Default/DefaultMergeEventListener.cs |
2 | 6 | 157 | src/NHibernate/Event/Default/DefaultMergeEventListener.cs |
| ||||
copyCache[entity] = entity; //before cascade! CascadeOnMerge(source, persister, entity, copyCache); |
| ||||
copyCache[entity] = copy; //before cascade! // cascade first, so that all unsaved objects get their // copy created before we actually copy //cascadeOnMerge(event, persister, entity, copyCache, Cascades.CASCADE_BEFORE_MERGE); base.CascadeBeforeSave(source, persister, entity, copyCache); |
| |||
copyCache[entity] = [[#variable6fa75de0]]; //before cascade! [[#variable6fa585a0]](source, persister, entity, copyCache); |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#6fa75de0]] | entity |
1 | 2 | [[#6fa75de0]] | copy |
2 | 1 | [[#6fa585a0]] | CascadeOnMerge |
2 | 2 | [[#6fa585a0]] | // cascade first, so that all unsaved objects get their // copy created before we actually copy //cascadeOnMerge(event, persister, entity, copyCache, Cascades.CASCADE_BEFORE_MERGE); base.CascadeBeforeSave |