CloneSet439


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
8240.979statement_list[6]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
18334
src/NHibernate/Cfg/XmlHbmBinding/ClassBinder.cs
2852
src/NHibernate/Cfg/XmlHbmBinding/JoinedSubclassBinder.cs
Clone Instance
1
Line Count
8
Source Line
334
Source File
src/NHibernate/Cfg/XmlHbmBinding/ClassBinder.cs

                        // KEY
                        XmlNode keyNode = node.SelectSingleNode(HbmConstants.nsKey, namespaceManager);
                        SimpleValue key = new DependantValue(table, persistentClass.Identifier);
                        join.Key = key;
                        if (keyNode.Attributes["on-delete"] != null)
                                key.IsCascadeDeleteEnabled = "cascade".Equals(keyNode.Attributes["on-delete"].Value);
                        BindSimpleValue(keyNode, key, false, persistentClass.EntityName);

                        join.CreatePrimaryKey(dialect);


Clone Instance
2
Line Count
8
Source Line
52
Source File
src/NHibernate/Cfg/XmlHbmBinding/JoinedSubclassBinder.cs

                        // KEY
                        XmlNode keyNode = subnode.SelectSingleNode(HbmConstants.nsKey, namespaceManager);
                        SimpleValue key = new DependantValue(mytable, subclass.Identifier);
                        subclass.Key = key;
                        if (keyNode.Attributes["on-delete"] != null)
                                key.IsCascadeDeleteEnabled = "cascade".Equals(keyNode.Attributes["on-delete"].Value);
                        BindSimpleValue(keyNode, key, false, subclass.EntityName);

                        subclass.CreatePrimaryKey(dialect);


Clone AbstractionParameter Count: 4Parameter Bindings

// KEY
XmlNode keyNode = [[#variable2906dba0]].SelectSingleNode(HbmConstants.nsKey, namespaceManager);
SimpleValue key = new DependantValue( [[#variable28b98d80]], [[#variable5894b0e0]].Identifier);
 [[#variable2906da00]].Key = key;
if (keyNode.Attributes["on-delete"] != null)
   key.IsCascadeDeleteEnabled = "cascade".Equals(keyNode.Attributes["on-delete"].Value);
BindSimpleValue(keyNode, key, false, [[#variable5894b0e0]].EntityName);
 [[#variable2906da00]].CreatePrimaryKey(dialect);
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#2906dba0]]
subnode 
12[[#2906dba0]]
node 
21[[#28b98d80]]
mytable 
22[[#28b98d80]]
table 
31[[#5894b0e0]]
subclass 
32[[#5894b0e0]]
persistentClass 
41[[#2906da00]]
subclass 
42[[#2906da00]]
join