CloneSet495


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
17220.989statement_list[11]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
117209
src/NHibernate.Test/HQL/Ast/BulkManipulation.cs
217257
src/NHibernate.Test/HQL/Ast/BulkManipulation.cs
Clone Instance
1
Line Count
17
Source Line
209
Source File
src/NHibernate.Test/HQL/Ast/BulkManipulation.cs

                        // Make sure the env supports bulk inserts with generated ids...
                        IEntityPersister persister = sessions.GetEntityPersister( typeof( IntegerVersioned).FullName);
                        IIdentifierGenerator generator = persister.IdentifierGenerator;
                        if ( !HqlSqlWalker.SupportsIdGenWithBulkInsertion(generator))
                        {
                                return;
                        }

                        ISession s = OpenSession();
                        ITransaction t = s.BeginTransaction();

                        var entity = new IntegerVersioned { Name = "int-vers"
                                                          } ;
                        s.Save(entity);
                        s.CreateQuery("select id, name, version from IntegerVersioned").List();
                        t.Commit();
                        s.Close();
                        long initialId = entity.Id;


Clone Instance
2
Line Count
17
Source Line
257
Source File
src/NHibernate.Test/HQL/Ast/BulkManipulation.cs

                        // Make sure the env supports bulk inserts with generated ids...
                        IEntityPersister persister = sessions.GetEntityPersister( typeof( TimestampVersioned).FullName);
                        IIdentifierGenerator generator = persister.IdentifierGenerator;
                        if ( !HqlSqlWalker.SupportsIdGenWithBulkInsertion(generator))
                        {
                                return;
                        }

                        ISession s = OpenSession();
                        ITransaction t = s.BeginTransaction();

                        var entity = new TimestampVersioned { Name = "int-vers"
                                                            } ;
                        s.Save(entity);
                        s.CreateQuery("select id, name, version from TimestampVersioned").List();
                        t.Commit();
                        s.Close();
                        long initialId = entity.Id;


Clone AbstractionParameter Count: 2Parameter Bindings

// Make sure the env supports bulk inserts with generated ids...
IEntityPersister persister = sessions.GetEntityPersister( typeof( [[#variable583b7200]]).FullName);
IIdentifierGenerator generator = persister.IdentifierGenerator;
if ( !HqlSqlWalker.SupportsIdGenWithBulkInsertion(generator))
{
   return;
}
ISession s = OpenSession();
ITransaction t = s.BeginTransaction();
var entity = new [[#variable583b7200]]{
                                         Name = "int-vers"
                                      } ;
s.Save(entity);
s.CreateQuery( [[#variable583b6fa0]]).List();
t.Commit();
s.Close();
long initialId = entity.Id;
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#583b7200]]
TimestampVersioned 
12[[#583b7200]]
IntegerVersioned 
21[[#583b6fa0]]
"select id, name, version from TimestampVersioned" 
22[[#583b6fa0]]
"select id, name, version from IntegerVersioned"