CloneSet446


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
40220.993compilation_unit
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
1401
src/NHibernate/Mapping/Backref.cs
2401
src/NHibernate/Mapping/IndexBackref.cs
Clone Instance
1
Line Count
40
Source Line
1
Source File
src/NHibernate/Mapping/Backref.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);
                            }
                }

        }
}


Clone Instance
2
Line Count
40
Source Line
1
Source File
src/NHibernate/Mapping/IndexBackref.cs

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);
                            }
                }

        }
}


Clone AbstractionParameter Count: 2Parameter Bindings

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 Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#584a4b80]]
Backref 
12[[#584a4b80]]
IndexBackref 
21[[#584a0480]]
BackrefPropertyAccessor 
22[[#584a0480]]
IndexPropertyAccessor