Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
8 | 2 | 4 | 0.979 | statement_list[6] |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 8 | 334 | src/NHibernate/Cfg/XmlHbmBinding/ClassBinder.cs |
2 | 8 | 52 | src/NHibernate/Cfg/XmlHbmBinding/JoinedSubclassBinder.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); |
| ||||
// 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); |
| |||
// 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 Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#2906dba0]] | subnode |
1 | 2 | [[#2906dba0]] | node |
2 | 1 | [[#28b98d80]] | mytable |
2 | 2 | [[#28b98d80]] | table |
3 | 1 | [[#5894b0e0]] | subclass |
3 | 2 | [[#5894b0e0]] | persistentClass |
4 | 1 | [[#2906da00]] | subclass |
4 | 2 | [[#2906da00]] | join |