CloneSet1349


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
9230.977class_member_declaration
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
110822
src/NHibernate/Mapping/PersistentClass.cs
29836
src/NHibernate/Mapping/PersistentClass.cs
Clone Instance
1
Line Count
10
Source Line
822
Source File
src/NHibernate/Mapping/PersistentClass.cs

                /// <summary>
                /// Given a property path, locate the appropriate referenceable property reference.
                /// </summary>
                /// <remarks>
                /// A referenceable property is a property  which can be a target of a foreign-key
                /// mapping (an identifier or explicitly named in a property-ref).
                /// </remarks>
                /// <param name="propertyPath">The property path to resolve into a property reference.</param>
                /// <returns>The property reference (never null).</returns>
                /// <exception cref="MappingException">If the property could not be found.</exception>
                public Property GetReferencedProperty(string propertyPath)
                {
                        try
                        {
                                return GetRecursiveProperty(propertyPath, ReferenceablePropertyIterator);
                        }
                        catch (MappingException e)
                        {
                                throw new MappingException(
                                        "property-ref [" + propertyPath + "] not found on entity [" + EntityName + "]", e);
                        }
                }



Clone Instance
2
Line Count
9
Source Line
836
Source File
src/NHibernate/Mapping/PersistentClass.cs

                public Property GetRecursiveProperty(string propertyPath)
                {
                        try
                        {
                                return GetRecursiveProperty(propertyPath, PropertyIterator);
                        }
                        catch (MappingException e)
                        {
                                throw new MappingException("property [" + propertyPath + "] not found on entity [" + EntityName + "]", e);
                        }
                }



Clone AbstractionParameter Count: 3Parameter Bindings

/// <summary>
/// Given a property path, locate the appropriate referenceable property reference.
/// </summary>
/// <remarks>
/// A referenceable property is a property  which can be a target of a foreign-key
/// mapping (an identifier or explicitly named in a property-ref).
/// </remarks>
/// <param name="propertyPath">The property path to resolve into a property reference.</param>
/// <returns>The property reference (never null).</returns>
/// <exception cref="MappingException">If the property could not be found.</exception>
public Property [[#variable2c7f0ea0]](string propertyPath)
{
   try
   {
      return GetRecursiveProperty(propertyPath, [[#variable2c7f0de0]]);
   }
   catch (MappingException e)
   {
      throw new MappingException( [[#variable2c7f0dc0]]+ propertyPath + "] not found on entity [" + EntityName + "]", e);
   }
}

 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#2c7f0ea0]]
GetRecursiveProperty 
12[[#2c7f0ea0]]
GetReferencedProperty 
21[[#2c7f0de0]]
PropertyIterator 
22[[#2c7f0de0]]
ReferenceablePropertyIterator 
31[[#2c7f0dc0]]
"property [" 
32[[#2c7f0dc0]]
"property-ref ["