Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
4 | 4 | 2 | 0.987 | statement_list[4] |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 4 | 219 | src/NHibernate.Test/Unionsubclass/UnionSubclassFixture.cs |
2 | 4 | 227 | src/NHibernate.Test/Unionsubclass/UnionSubclassFixture.cs |
3 | 4 | 232 | src/NHibernate.Test/Unionsubclass/UnionSubclassFixture.cs |
4 | 4 | 237 | src/NHibernate.Test/Unionsubclass/UnionSubclassFixture.cs |
| ||||
gavin = (Human)s.CreateQuery("from Human h left join fetch h.things").UniqueResult(); Assert.IsTrue(NHibernateUtil.IsInitialized(gavin.Things)); Assert.AreEqual("some thing", ((Thing)gavin.Things[0]).Description); s.Clear(); |
| ||||
gavin = (Human)s.CreateQuery("from Being b join fetch b.things").UniqueResult(); Assert.IsTrue(NHibernateUtil.IsInitialized(gavin.Things)); Assert.AreEqual("some thing", ((Thing)gavin.Things[0]).Description); s.Clear(); |
| ||||
gavin = (Human)s.CreateQuery("select h from Human h join h.things t where t.description='some thing'").UniqueResult(); Assert.IsFalse(NHibernateUtil.IsInitialized(gavin.Things)); Assert.AreEqual("some thing", ((Thing)gavin.Things[0]).Description); s.Clear(); |
| ||||
gavin = (Human)s.CreateQuery("select b from Being b join b.things t where t.description='some thing'").UniqueResult(); Assert.IsFalse(NHibernateUtil.IsInitialized(gavin.Things)); Assert.AreEqual("some thing", ((Thing)gavin.Things[0]).Description); s.Clear(); |
| |||
gavin = (Human)s.CreateQuery( [[#variable563d9300]]).UniqueResult(); Assert. [[#variable563d9280]](NHibernateUtil.IsInitialized(gavin.Things)); Assert.AreEqual("some thing", ((Thing)gavin.Things[0]).Description); s.Clear(); |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#563d9300]] | "select b from Being b join b.things t where t.description='some thing'" |
1 | 2 | [[#563d9300]] | "select h from Human h join h.things t where t.description='some thing'" |
1 | 3 | [[#563d9300]] | "from Being b join fetch b.things" |
1 | 4 | [[#563d9300]] | "from Human h left join fetch h.things" |
2 | 1 | [[#563d9280]] | IsFalse |
2 | 2 | [[#563d9280]] | IsFalse |
2 | 3 | [[#563d9280]] | IsTrue |
2 | 4 | [[#563d9280]] | IsTrue |