Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
40 | 2 | 2 | 0.993 | compilation_unit |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 40 | 1 | src/NHibernate/Mapping/Backref.cs |
2 | 40 | 1 | src/NHibernate/Mapping/IndexBackref.cs |
| ||||
using System; using NHibernate.Properties; namespace NHibernate.Mapping { [Serializable] public class Backref : Property { private string collectionRole; private string entityName; public string CollectionRole { get { return collectionRole; } set { collectionRole = value; } } public string EntityName { get { return entityName; } set { entityName = value; } } public override bool BackRef { get { return true; } } public override bool IsBasicPropertyAccessor { get { return false; } } protected override IPropertyAccessor PropertyAccessor { get { return new BackrefPropertyAccessor(collectionRole, entityName); } } } } |
| ||||
using System; using NHibernate.Properties; namespace NHibernate.Mapping { [Serializable] public class IndexBackref : Property { private string collectionRole; private string entityName; public string CollectionRole { get { return collectionRole; } set { collectionRole = value; } } public string EntityName { get { return entityName; } set { entityName = value; } } public override bool BackRef { get { return true; } } public override bool IsBasicPropertyAccessor { get { return false; } } protected override IPropertyAccessor PropertyAccessor { get { return new IndexPropertyAccessor(collectionRole, entityName); } } } } |
| |||
using System; using NHibernate.Properties; namespace NHibernate.Mapping { [Serializable] public class [[#variable584a4b80]]: Property { private string collectionRole; private string entityName; public string CollectionRole { get { return collectionRole; } set { collectionRole = value; } } public string EntityName { get { return entityName; } set { entityName = value; } } public override bool BackRef { get { return true; } } public override bool IsBasicPropertyAccessor { get { return false; } } protected override IPropertyAccessor PropertyAccessor { get { return new [[#variable584a0480]](collectionRole, entityName); } } } } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#584a4b80]] | Backref |
1 | 2 | [[#584a4b80]] | IndexBackref |
2 | 1 | [[#584a0480]] | BackrefPropertyAccessor |
2 | 2 | [[#584a0480]] | IndexPropertyAccessor |