CloneSet625


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
11310.994statement_list[5]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
18402
src/NHibernate.Test/Legacy/SQLLoaderTest.cs
210411
src/NHibernate.Test/Legacy/SQLLoaderTest.cs
311422
src/NHibernate.Test/Legacy/SQLLoaderTest.cs
Clone Instance
1
Line Count
8
Source Line
402
Source File
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();


Clone Instance
2
Line Count
10
Source Line
411
Source File
src/NHibernate.Test/Legacy/SQLLoaderTest.cs

                        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();


Clone Instance
3
Line Count
11
Source Line
422
Source File
src/NHibernate.Test/Legacy/SQLLoaderTest.cs

                        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();


Clone AbstractionParameter Count: 1Parameter Bindings

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 Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#4fac5740]]
"select s.id as {sing.Id}, s.string_ as {sing.String}, s.prop as {sing.Prop} from Single s where s.Id = ?" 
12[[#4fac5740]]
"select {sing.*} from Single {sing} where sing.Id = ?" 
13[[#4fac5740]]
"select s.id as {sing.Id}, s.string_ as {sing.String}, s.prop as {sing.Prop} from Single s where s.Id = ?"