Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
16 | 2 | 4 | 0.957 | statement_list[10] |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 16 | 78 | src/NHibernate.Test/CompositeId/ClassWithCompositeIdFixture.cs |
2 | 15 | 200 | 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(); |
| ||||
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"); |
| |||
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 Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#53cf4600]] | ITransaction |
1 | 2 | [[#53cf4600]] | IQuery |
2 | 1 | [[#53ac7fc0]] | t2 |
2 | 2 | [[#53ac7fc0]] | hql |
3 | 1 | [[#53cf4500]] | BeginTransaction |
3 | 2 | [[#53cf4500]] | CreateQuery |
4 | 1 | [[#55018b20]] | |
4 | 2 | [[#55018b20]] | "from ClassWithCompositeId as cwid where cwid.Id.KeyString = :keyString" |