CloneSet529


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
10220.992statement_list[9]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
110245
src/NHibernate.Test/CompositeId/CompositeIdFixture.cs
210255
src/NHibernate.Test/CompositeId/CompositeIdFixture.cs
Clone Instance
1
Line Count
10
Source Line
245
Source File
src/NHibernate.Test/CompositeId/CompositeIdFixture.cs

                        o = (Order) s.CreateQuery("from Order o left join fetch o.LineItems li left join fetch li.Product p").UniqueResult();
                        Assert.IsTrue(NHibernateUtil.IsInitialized(o.LineItems));
                        li = (LineItem) o.LineItems[0];
                        Assert.IsTrue(NHibernateUtil.IsInitialized(li));
                        Assert.IsTrue(NHibernateUtil.IsInitialized(li.Product));
                        t.Commit();
                        s.Close();

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


Clone Instance
2
Line Count
10
Source Line
255
Source File
src/NHibernate.Test/CompositeId/CompositeIdFixture.cs

                        o = (Order) s.CreateQuery("from Order o").UniqueResult();
                        Assert.IsTrue(NHibernateUtil.IsInitialized(o.LineItems));
                        li = (LineItem) o.LineItems[0];
                        Assert.IsTrue(NHibernateUtil.IsInitialized(li));
                        Assert.IsFalse(NHibernateUtil.IsInitialized(li.Product));
                        t.Commit();
                        s.Close();

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


Clone AbstractionParameter Count: 2Parameter Bindings

o = (Order)s.CreateQuery( [[#variable5f76a7c0]]).UniqueResult();
Assert.IsTrue(NHibernateUtil.IsInitialized(o.LineItems));
li = (LineItem)o.LineItems[0];
Assert.IsTrue(NHibernateUtil.IsInitialized(li));
Assert. [[#variable2bf744a0]](NHibernateUtil.IsInitialized(li.Product));
t.Commit();
s.Close();
s = OpenSession();
t = s.BeginTransaction();
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#5f76a7c0]]
"from Order o" 
12[[#5f76a7c0]]
"from Order o left join fetch o.LineItems li left join fetch li.Product p" 
21[[#2bf744a0]]
IsFalse 
22[[#2bf744a0]]
IsTrue