Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
9 | 2 | 3 | 0.977 | class_member_declaration |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 10 | 822 | src/NHibernate/Mapping/PersistentClass.cs |
2 | 9 | 836 | 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); } } |
| ||||
public Property GetRecursiveProperty(string propertyPath) { try { return GetRecursiveProperty(propertyPath, PropertyIterator); } catch (MappingException e) { throw new MappingException("property [" + propertyPath + "] not found on entity [" + EntityName + "]", e); } } |
| |||
/// <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 Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#2c7f0ea0]] | GetRecursiveProperty |
1 | 2 | [[#2c7f0ea0]] | GetReferencedProperty |
2 | 1 | [[#2c7f0de0]] | PropertyIterator |
2 | 2 | [[#2c7f0de0]] | ReferenceablePropertyIterator |
3 | 1 | [[#2c7f0dc0]] | "property [" |
3 | 2 | [[#2c7f0dc0]] | "property-ref [" |