Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
5 | 2 | 1 | 0.996 | statement_list[3] |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 5 | 81 | src/NHibernate.Test/NHSpecificTest/NH1394/Fixture.cs |
2 | 5 | 106 | src/NHibernate.Test/NHSpecificTest/NH1394/Fixture.cs |
| ||||
DetachedCriteria dc = DetachedCriteria.For < Person > ("sub"); dc.CreateCriteria("Pets", "pets").SetProjection(Projections.Min("pets.Weight")).Add( Restrictions.EqProperty("this.Id", "sub.Id")); ICriteria c = s.CreateCriteria( typeof( Person)).AddOrder(Order.Asc(Projections.SubQuery(dc))); |
| ||||
DetachedCriteria dc = DetachedCriteria.For < Person > ("sub"); dc.CreateCriteria("Pets", "pets").SetProjection(Projections.Min("pets.Weight")).Add( Restrictions.EqProperty("this.Id", "sub.Id")); ICriteria c = s.CreateCriteria( typeof( Person)).AddOrder(Order.Desc(Projections.SubQuery(dc))); |
| |||
DetachedCriteria dc = DetachedCriteria.For < Person > ("sub"); dc.CreateCriteria("Pets", "pets").SetProjection(Projections.Min("pets.Weight")).Add(Restrictions.EqProperty("this.Id", "sub.Id")); ICriteria c = s.CreateCriteria( typeof(Person)).AddOrder(Order. [[#variable4707f4c0]](Projections.SubQuery(dc))); |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#4707f4c0]] | Desc |
1 | 2 | [[#4707f4c0]] | Asc |