CloneSet667


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
16240.957statement_list[10]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
11678
src/NHibernate.Test/CompositeId/ClassWithCompositeIdFixture.cs
215200
src/NHibernate.Test/CompositeId/ClassWithCompositeIdFixture.cs
Clone Instance
1
Line Count
16
Source Line
78
Source File
src/NHibernate.Test/CompositeId/ClassWithCompositeIdFixture.cs

                        ClassWithCompositeId theClass = new ClassWithCompositeId(id);
                        theClass.OneProperty = 5;

                        ClassWithCompositeId theSecondClass = new ClassWithCompositeId(secondId);
                        theSecondClass.OneProperty = 10;

                        s.Save(theClass);
                        s.Save(theSecondClass);

                        t.Commit();
                        s.Close();

                        // verify they were inserted and test the SELECT

                        ISession s2 = OpenSession();
                        ITransaction t2 = s2.BeginTransaction();


Clone Instance
2
Line Count
15
Source Line
200
Source File
src/NHibernate.Test/CompositeId/ClassWithCompositeIdFixture.cs

                        ClassWithCompositeId theClass = new ClassWithCompositeId(id);
                        theClass.OneProperty = 5;

                        ClassWithCompositeId theSecondClass = new ClassWithCompositeId(secondId);
                        theSecondClass.OneProperty = 10;

                        s.Save(theClass);
                        s.Save(theSecondClass);

                        t.Commit();
                        s.Close();

                        ISession s2 = OpenSession();

                        IQuery hql = s2.CreateQuery("from ClassWithCompositeId as cwid where cwid.Id.KeyString = :keyString");


Clone AbstractionParameter Count: 4Parameter Bindings

ClassWithCompositeId theClass = new ClassWithCompositeId(id);
theClass.OneProperty = 5;
ClassWithCompositeId theSecondClass = new ClassWithCompositeId(secondId);
theSecondClass.OneProperty = 10;
s.Save(theClass);
s.Save(theSecondClass);
t.Commit();
s.Close();
// verify they were inserted and test the SELECT
ISession s2 = OpenSession();
 [[#variable53cf4600]] [[#variable53ac7fc0]]= s2. [[#variable53cf4500]]( [[#variable55018b20]]);
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#53cf4600]]
ITransaction 
12[[#53cf4600]]
IQuery 
21[[#53ac7fc0]]
t2 
22[[#53ac7fc0]]
hql 
31[[#53cf4500]]
BeginTransaction 
32[[#53cf4500]]
CreateQuery 
41[[#55018b20]]
42[[#55018b20]]
"from ClassWithCompositeId as cwid where cwid.Id.KeyString = :keyString"