CloneSet183


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
21210.961statement_list[5]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
123328
src/NHibernate/Loader/Custom/Sql/SQLQueryReturnProcessor.cs
221367
src/NHibernate/Loader/Custom/Sql/SQLQueryReturnProcessor.cs
Clone Instance
1
Line Count
23
Source Line
328
Source File
src/NHibernate/Loader/Custom/Sql/SQLQueryReturnProcessor.cs

                                        ISqlLoadableCollection persister = alias2CollectionPersister[alias];
                                        bool isEntityElements = persister.ElementType.IsEntityType;
                                        ICollectionAliases collectionAliases;
                                        IEntityAliases elementEntityAliases = null;
                                        if (queryHadAliases || HasPropertyResultMap(alias))
                                        {
                                                collectionAliases =
                                                        new GeneratedCollectionAliases(collectionPropertyResultMaps[alias], alias2CollectionPersister[alias],
                                                                                       alias2CollectionSuffix[alias]);
                                                if (isEntityElements)
                                                {
                                                        elementEntityAliases =
                                                                new DefaultEntityAliases(entityPropertyResultMaps[alias], alias2Persister[alias], alias2Suffix[alias]);
                                                }
                                        }
                                        else
                                        {
                                                collectionAliases =
                                                        new ColumnCollectionAliases(collectionPropertyResultMaps[alias], alias2CollectionPersister[alias]);
                                                if (isEntityElements)
                                                {
                                                        elementEntityAliases =
                                                                new ColumnEntityAliases(entityPropertyResultMaps[alias], alias2Persister[alias], alias2Suffix[alias]);
                                                }
                                        }


Clone Instance
2
Line Count
21
Source Line
367
Source File
src/NHibernate/Loader/Custom/Sql/SQLQueryReturnProcessor.cs

                                                ISqlLoadableCollection persister = alias2CollectionPersister[alias];
                                                bool isEntityElements = persister.ElementType.IsEntityType;
                                                ICollectionAliases collectionAliases;
                                                IEntityAliases elementEntityAliases = null;
                                                if (queryHadAliases || HasPropertyResultMap(alias))
                                                {
                                                        collectionAliases =
                                                                new GeneratedCollectionAliases(collectionPropertyResultMaps[alias], persister, alias2CollectionSuffix[alias]);
                                                        if (isEntityElements)
                                                        {
                                                                elementEntityAliases =
                                                                        new DefaultEntityAliases(entityPropertyResultMaps[alias], alias2Persister[alias], alias2Suffix[alias]);
                                                        }
                                                }
                                                else
                                                {
                                                        collectionAliases = new ColumnCollectionAliases(collectionPropertyResultMaps[alias], persister);
                                                        if (isEntityElements)
                                                        {
                                                                elementEntityAliases =
                                                                        new ColumnEntityAliases(entityPropertyResultMaps[alias], alias2Persister[alias], alias2Suffix[alias]);
                                                        }
                                                }


Clone AbstractionParameter Count: 1Parameter Bindings

ISqlLoadableCollection persister = alias2CollectionPersister[alias];
bool isEntityElements = persister.ElementType.IsEntityType;
ICollectionAliases collectionAliases;
IEntityAliases elementEntityAliases = null;
if (queryHadAliases || HasPropertyResultMap(alias))
{
   collectionAliases = new GeneratedCollectionAliases(collectionPropertyResultMaps[alias], [[#variable69761860]], alias2CollectionSuffix[alias]);
   if (isEntityElements)
   {
      elementEntityAliases = new DefaultEntityAliases(entityPropertyResultMaps[alias], alias2Persister[alias], alias2Suffix[alias]);
   }
}
else
{
   collectionAliases = new ColumnCollectionAliases(collectionPropertyResultMaps[alias], [[#variable69761860]]);
   if (isEntityElements)
   {
      elementEntityAliases = new ColumnEntityAliases(entityPropertyResultMaps[alias], alias2Persister[alias], alias2Suffix[alias]);
   }
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#69761860]]
persister 
12[[#69761860]]
alias2CollectionPersister[alias]