Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
10 | 2 | 2 | 0.992 | statement_list[9] |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 10 | 245 | src/NHibernate.Test/CompositeId/CompositeIdFixture.cs |
2 | 10 | 255 | 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(); |
| ||||
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(); |
| |||
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 Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#5f76a7c0]] | "from Order o" |
1 | 2 | [[#5f76a7c0]] | "from Order o left join fetch o.LineItems li left join fetch li.Product p" |
2 | 1 | [[#2bf744a0]] | IsFalse |
2 | 2 | [[#2bf744a0]] | IsTrue |