Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
6 | 2 | 1 | 0.996 | statement_list[2] |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 6 | 114 | src/NHibernate.Test/NHSpecificTest/NH1359/Fixture.cs |
2 | 6 | 183 | src/NHibernate.Test/NHSpecificTest/NH1359/Fixture.cs |
| ||||
DetachedCriteria dc = DetachedCriteria.For<Person> ().Add(Restrictions.Eq("Name", "Joe")). SetProjection(Projections.Max("Name")); ICriteria c = s.CreateCriteria( typeof(Person)). SetProjection(Projections.ProjectionList(). Add(Projections.SubQuery(dc), "Name")). Add(Restrictions.Eq("Name", "Joe")); |
| ||||
DetachedCriteria dc = DetachedCriteria.For<Person> ().Add(Restrictions.Eq("Name", "Joe")). SetProjection(Projections.Max("Name")); ICriteria c = s.CreateCriteria( typeof(Person)). SetProjection(Projections.ProjectionList(). Add(Projections.SubQuery(dc), "NameSubquery")). Add(Restrictions.Eq("Name", "Joe")); |
| |||
DetachedCriteria dc = DetachedCriteria.For<Person> ().Add(Restrictions.Eq("Name", "Joe")).SetProjection(Projections.Max("Name")); ICriteria c = s.CreateCriteria( typeof(Person)).SetProjection(Projections.ProjectionList().Add(Projections.SubQuery(dc), [[#variable6ad208c0]])).Add(Restrictions.Eq("Name", "Joe")); |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#6ad208c0]] | "NameSubquery" |
1 | 2 | [[#6ad208c0]] | "Name" |