CloneSet1012


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
10201.000statement_list[4]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
110673
src/NHibernate/Cfg/XmlHbmBinding/ClassBinder.cs
210354
src/NHibernate/Cfg/XmlHbmBinding/ClassCompositeIdBinder.cs
Clone Instance
1
Line Count
10
Source Line
673
Source File
src/NHibernate/Cfg/XmlHbmBinding/ClassBinder.cs

                        // This is done here 'cos we might only know the type here (ugly!)
                        var toOne = value as ToOne;
                        if (toOne != null)
                        {
                                string propertyRef = toOne.ReferencedPropertyName;
                                if (propertyRef != null)
                                        mappings.AddUniquePropertyReference(toOne.ReferencedEntityName, propertyRef);
                        }

                        value.CreateForeignKey();
                        var prop = new Property { Value = value
                                                } ;


Clone Instance
2
Line Count
10
Source Line
354
Source File
src/NHibernate/Cfg/XmlHbmBinding/ClassCompositeIdBinder.cs

                        // This is done here 'cos we might only know the type here (ugly!)
                        var toOne = value as ToOne;
                        if (toOne != null)
                        {
                                string propertyRef = toOne.ReferencedPropertyName;
                                if (propertyRef != null)
                                        mappings.AddUniquePropertyReference(toOne.ReferencedEntityName, propertyRef);
                        }

                        value.CreateForeignKey();
                        var prop = new Property { Value = value
                                                } ;


Clone AbstractionParameter Count: 0Parameter Bindings

// This is done here 'cos we might only know the type here (ugly!)
var toOne = value as ToOne;
if (toOne != null)
{
   string propertyRef = toOne.ReferencedPropertyName;
   if (propertyRef != null)
      mappings.AddUniquePropertyReference(toOne.ReferencedEntityName, propertyRef);
}
value.CreateForeignKey();
var prop = new Property {
                           Value = value
                        } ;
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
None