Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
7 | 2 | 0 | 1.000 | statement_list[2] |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 6 | 92 | src/NHibernate.Test/NHSpecificTest/NH1359/Fixture.cs |
2 | 7 | 140 | src/NHibernate.Test/NHSpecificTest/NH1359/Fixture.cs |
| ||||
ICriteria c = s.CreateCriteria( typeof(Person)). SetProjection(Projections.ProjectionList(). Add(Projections.SubQuery(dc), "Weight"). Add(Projections.Property("Name"), "Name")). Add (Restrictions.Eq("Name", "Joe")); c.SetResultTransformer(Transformers.AliasToBean( typeof(HeaviestPet))); |
| ||||
ICriteria c = s.CreateCriteria( typeof(Person)). SetProjection(Projections.ProjectionList(). Add(Projections.SubQuery(dc), "Weight"). Add(Projections.Property("Name"), "Name")). Add (Restrictions.Eq("Name", "Joe")); c.SetResultTransformer(Transformers.AliasToBean( typeof(HeaviestPet))); |
| |||
ICriteria c = s.CreateCriteria( typeof(Person)).SetProjection(Projections.ProjectionList().Add(Projections.SubQuery(dc), "Weight").Add(Projections.Property("Name"), "Name")).Add(Restrictions.Eq("Name", "Joe")); c.SetResultTransformer(Transformers.AliasToBean( typeof(HeaviestPet))); |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
None |