CloneSet624


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
15201.000statement_list[8]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
112502
src/NHibernate.Test/Legacy/SQLLoaderTest.cs
215532
src/NHibernate.Test/Legacy/SQLLoaderTest.cs
Clone Instance
1
Line Count
12
Source Line
502
Source File
src/NHibernate.Test/Legacy/SQLLoaderTest.cs

                        IQuery query =
                                session.CreateSQLQuery(
                                        "select s.category_key_col as {category.id}, s.Name as {category.Name}, s.\"assign able id\" as {category.Assignable} from {category} s").
                                         AddEntity("category", typeof(Category));
                        IList list = query.List();

                        Assert.IsNotNull(list);
                        Assert.IsTrue(list.Count > 0);
                        Assert.IsTrue(list[0] is Category);
                        session.Delete(list[0]);
                        session.Flush();
                        session.Close();


Clone Instance
2
Line Count
15
Source Line
532
Source File
src/NHibernate.Test/Legacy/SQLLoaderTest.cs

                        IQuery query =
                                session.CreateSQLQuery(
                                        "select s.category_key_col as {category.id}, s.Name as {category.Name}, s.\"assign able id\" as {category.Assignable} from {category} s").
                                         AddEntity("category", typeof(Category));
                        IList list = query.List();

                        Assert.IsNotNull(list);
                        Assert.IsTrue(list.Count > 0);
                        Assert.IsTrue(list[0] is Category);

                        // How do we handle objects that does not have id property (such as Simple ?)
                        // How do we handle objects with composite id's ? (such as Single)
                        session.Delete(list[0]);
                        session.Flush();
                        session.Close();


Clone AbstractionParameter Count: 0Parameter Bindings

IQuery query = session.CreateSQLQuery("select s.category_key_col as {category.id}, s.Name as {category.Name}, s.\"assign able id\" as {category.Assignable} from {category} s").AddEntity("category", typeof(Category));
IList list = query.List();
Assert.IsNotNull(list);
Assert.IsTrue(list.Count > 0);
Assert.IsTrue(list[0] is Category);
// How do we handle objects that does not have id property (such as Simple ?)
// How do we handle objects with composite id's ? (such as Single)
session.Delete(list[0]);
session.Flush();
session.Close();
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
None