Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
15 | 2 | 0 | 1.000 | statement_list[8] |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 12 | 502 | src/NHibernate.Test/Legacy/SQLLoaderTest.cs |
2 | 15 | 532 | 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(); |
| ||||
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(); |
| |||
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 Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
None |