Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
11 | 3 | 1 | 0.994 | statement_list[5] |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 8 | 402 | src/NHibernate.Test/Legacy/SQLLoaderTest.cs |
2 | 10 | 411 | src/NHibernate.Test/Legacy/SQLLoaderTest.cs |
3 | 11 | 422 | src/NHibernate.Test/Legacy/SQLLoaderTest.cs |
| ||||
Assert.IsTrue(list.Count == 1); session.Clear(); query = session.CreateSQLQuery("select {sing.*} from Single {sing} where sing.Id = ?"). AddEntity("sing", typeof(Single)); query.SetString(0, "my id"); list = query.List(); |
| ||||
Assert.IsTrue(list.Count == 1); session.Clear(); query = session.CreateSQLQuery( "select s.id as {sing.Id}, s.string_ as {sing.String}, s.prop as {sing.Prop} from Single s where s.Id = ?"). AddEntity("sing", typeof(Single)); query.SetString(0, "my id"); list = query.List(); |
| ||||
Assert.IsTrue(list.Count == 1); session.Clear(); query = session.CreateSQLQuery( "select s.id as {sing.Id}, s.string_ as {sing.String}, s.prop as {sing.Prop} from Single s where s.Id = ?"). AddEntity("sing", typeof(Single)); query.SetString(0, "my id"); list = query.List(); |
| |||
Assert.IsTrue(list.Count == 1); session.Clear(); query = session.CreateSQLQuery( [[#variable4fac5740]]).AddEntity("sing", typeof(Single)); query.SetString(0, "my id"); list = query.List(); |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#4fac5740]] | "select s.id as {sing.Id}, s.string_ as {sing.String}, s.prop as {sing.Prop} from Single s where s.Id = ?" |
1 | 2 | [[#4fac5740]] | "select {sing.*} from Single {sing} where sing.Id = ?" |
1 | 3 | [[#4fac5740]] | "select s.id as {sing.Id}, s.string_ as {sing.String}, s.prop as {sing.Prop} from Single s where s.Id = ?" |