CloneSet735


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
9230.970statement_list[4]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
1992
src/NHibernate/Persister/Collection/OneToManyPersister.cs
29123
src/NHibernate/Persister/Collection/OneToManyPersister.cs
Clone Instance
1
Line Count
9
Source Line
92
Source File
src/NHibernate/Persister/Collection/OneToManyPersister.cs

                        SqlUpdateBuilder update = new SqlUpdateBuilder(Factory.Dialect, Factory);
                        update.SetTableName(qualifiedTableName).
                                 AddColumns(KeyColumnNames, KeyType);
                        if (HasIndex && !indexContainsFormula)
                                update.AddColumns(IndexColumnNames, IndexType);

                        //identifier collections not supported for 1-to-many 
                        if (Factory.Settings.IsCommentsEnabled)
                                update.SetComment("create one-to-many row " + Role);


Clone Instance
2
Line Count
9
Source Line
123
Source File
src/NHibernate/Persister/Collection/OneToManyPersister.cs

                        SqlUpdateBuilder update = new SqlUpdateBuilder(Factory.Dialect, Factory);
                        update.SetTableName(qualifiedTableName).
                                 AddColumns(KeyColumnNames, "null");

                        if (HasIndex && !indexContainsFormula)
                                update.AddColumns(IndexColumnNames, "null");

                        if (Factory.Settings.IsCommentsEnabled)
                                update.SetComment("delete one-to-many row " + Role);


Clone AbstractionParameter Count: 3Parameter Bindings

SqlUpdateBuilder update = new SqlUpdateBuilder(Factory.Dialect, Factory);
update.SetTableName(qualifiedTableName).AddColumns(KeyColumnNames, [[#variable26ec80e0]]);
if (HasIndex && !indexContainsFormula)
   update.AddColumns(IndexColumnNames, [[#variable26ec81a0]]);
//identifier collections not supported for 1-to-many 
if (Factory.Settings.IsCommentsEnabled)
   update.SetComment( [[#variable26ec8020]]+ Role);
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#26ec80e0]]
"null" 
12[[#26ec80e0]]
KeyType 
21[[#26ec81a0]]
"null" 
22[[#26ec81a0]]
IndexType 
31[[#26ec8020]]
"delete one-to-many row " 
32[[#26ec8020]]
"create one-to-many row "