Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
3 | 2 | 4 | 0.955 | statement |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 3 | 194 | src/NHibernate.Test/Criteria/CriteriaQueryTest.cs |
2 | 3 | 198 | src/NHibernate.Test/Criteria/CriteriaQueryTest.cs |
| ||||
DetachedCriteria courseCriteria = DetachedCriteria.For( typeof(Course)). Add (Property.ForName("Description").Eq("Hibernate Training")). SetProjection (Projections.Property("CourseCode")); |
| ||||
DetachedCriteria enrolmentCriteria = DetachedCriteria.For( typeof(Enrolment)). Add (Property.ForName("CourseCode").Eq(courseCriteria)). SetProjection (Projections.Property("CourseCode")); |
| |||
DetachedCriteria [[#variable297c9f00]]= DetachedCriteria.For( typeof( [[#variable297c9e80]])).Add(Property.ForName( [[#variable297c9e00]]).Eq( [[#variable297c9da0]])).SetProjection(Projections.Property("CourseCode")); |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#297c9f00]] | courseCriteria |
1 | 2 | [[#297c9f00]] | enrolmentCriteria |
2 | 1 | [[#297c9e80]] | Course |
2 | 2 | [[#297c9e80]] | Enrolment |
3 | 1 | [[#297c9e00]] | "Description" |
3 | 2 | [[#297c9e00]] | "CourseCode" |
4 | 1 | [[#297c9da0]] | "Hibernate Training" |
4 | 2 | [[#297c9da0]] | courseCriteria |